• The ad, at the bottom of the content sidebar, has very poor click-through rate. Consequently, I wanted to change the ad’s location. For this, I deleted the ad code from the sidebar-content.php file. I have even hidden the ad from my adsense page. Unfortunately the ad still shows. I had previously configured it, such that the ad would be visible only on the homepage. So, I had added the following code:
    `<?php if (is_home()) {
    ?>
    <script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
    <!– homepage_ad –>
    <ins class=”adsbygoogle”
    style=”display:inline-block;width:336px;height:280px”
    data-ad-client=”ca-pub-2695893311245169″
    data-ad-slot=”5867657335″></ins>
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({});
    </script>
    <?php
    } ?>

    I checked the parent theme, and the sidebar-content.php file does not have the ad code. I don’t know what is going wrong.

    Any help will be appreciated.

    PS: My website is https://www.hexapolis.com

Viewing 1 replies (of 1 total)
  • Theme Author Brian Harris

    (@zgani)

    Viewing the site I only see the ad at the top of the content-sidebar but not at the bottom.

    You may need to clear your browser cookies or flash the cache if you have that running on the site.

    Zulf

Viewing 1 replies (of 1 total)
  • The topic ‘Ad getting displayed even after the code has been removed’ is closed to new replies.