• Good evening!

    I’m writing because I’ve just installed Add to Footer on my WordPress site. I added the JavaScript code for my Google AdSense account in the plugin settings, but nothing appears in the footer area of my site.

    The site is http://www.inthenuthouse.com and the code I’m trying to use is pasted below. Could you please let me know what I’m doing wrong?

    Thanks!

    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <!-- Sidebar 1 -->
    <ins class="adsbygoogle"
         style="display:inline-block;width:300px;height:600px"
         data-ad-client="ca-pub-9793114590243545"
         data-ad-slot="2077633513"></ins>
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({});
    </script>

    https://ww.wp.xz.cn/plugins/add-to-footer/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter devanthony

    (@devanthony)

    My apologies. The code I’m trying to display is:

    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <!-- Footer 2 -->
    <ins class="adsbygoogle"
         style="display:inline-block;width:728px;height:90px"
         data-ad-client="ca-pub-9793114590243545"
         data-ad-slot="6368232310"></ins>
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({});
    </script>
    Plugin Author Ajay

    (@ajay)

    Hi,

    Could you please let me know where exactly you are pasting the code in the Settings page.

    Also, do you have any caching plugins on your site? If so, you’d need to clear the cache after updating the options.

    Thread Starter devanthony

    (@devanthony)

    Good evening,

    I’m trying to get the code either above or below the “Related e-books” ads in the footer of the page. As an alternative, I could have the AdSense code on the right-hand side of the page, underneath all of the menu items. I’ve put the code in its own block in all three of those places.

    When trying to make the ad appear, I’ve included the JavaScript in two ways: firstly, in a text-only widget, and then in the AdSense plugin provided by Google.

    In response to your other question, no, I don’t have any caching plugins on my site. Just to play it safe, I cleared out my cache anyway, and still the ad block won’t appear on my site.

    I’ve tried every thing I can think of to make the ad work, short of performing a ritual dance and sacrificing a melon to the god of technology. 😉

    Thank you so much for such a quick reply!
    -Dev

    Plugin Author Ajay

    (@ajay)

    Hi Dev,

    I just checked the source of your page ( view-source:http://www.inthenuthouse.com/ ) in Chrome and I can see this in the page. It seems like code is being added into the page. Do you have any minifying js code that could be interfering with the display?

    <a href="#branding" id="scrollup"></a>
    <script><!--
    dynamicgoogletags.update();
    //--></script><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <!-- Footer 2 -->
    <ins class="adsbygoogle"
         style="display:inline-block;width:728px;height:90px"
         data-ad-client="ca-pub-9793114590243545"
         data-ad-slot="6368232310"></ins>
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({});
    </script>
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘JavaScript Code does not appear.’ is closed to new replies.