Adding Adsense Code

  • Member
    July 22, 2017 at 2:22 pm #31763

    I wanted to add adsense Ads between every 3 blog grids using your Post Grid element in Visual Composer. Which file and after what code should I place the adsense code? See the screenshot below:

    I was given the following code to be placed in the index.php file of the theme, but that is only showing on the blog page selected in the Settings>Reading and not between the grids.

    <div class=”westarticle”>
    <?php $postnum++; if($postnum%2 == 0) { ?>
    <script async src=”//”></script>
    <!– New landing 2 –>
    <ins class=”adsbygoogle”
    (adsbygoogle = window.adsbygoogle || []).push({});
    <?php } ?>

    Please help, its urgent!

    Sorry, this forum is for verified users only. Please Login or Register to continue

Comments are closed.