• I don’t know what happened to the header ad but as I updated WordPress to 4.1.2 it stopped displaying at top. Now I am at WP 4.2 and the theme is at 2.4.1, but still the ad is not showing.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi gurjyottheman. Can you post a link to your site? Also, not sure where you found theme v2.4.1. The latest version on the theme website is 2.2.3.

    Thread Starter gurjyottheman

    (@gurjyottheman)

    Sorry for the wrong theme version, I thought it was something else.
    My theme version is v2.2.3 that is on Github.

    The link for my website is YoGadz.com

    The header-ads, widget, textwidget and adsbygoogle containers all have a size of 0x0. That would seem to indicate that there aren’t any ads to display.

    Thread Starter gurjyottheman

    (@gurjyottheman)

    Hello @bdbrown, I have tried to apply another ad unit there, which is already showing on website to be sure that either that particular ad unit (Header unit) is not working or problem is something else. But the new ad unit also not displaying there. So I think the ads are working fine but the problem is something else.

    Well, all the containers that should be there are there. You might try deleting the existing widget in the Header Ads sidebar and adding a new text widget with the ad code.

    Thread Starter gurjyottheman

    (@gurjyottheman)

    I tried what you said but its not working. I also shifted header ad in footer to see if that is working and there it works just fine. But still no clue what’s issue with header ad.

    Not sure what this means but there’s an error generated by the ad javascript:

    Here’s the source code from the home page:

    <div id="header-ads">
      <div id="text-17" class="widget widget_text">
        <div class="textwidget">
    	  <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    	  <!-- Top Wide Banner (www.yogadz.com) -->
    	  <ins class="adsbygoogle"
    		style="display:block"
    		data-ad-client="ca-pub-8741195291191038"
    		data-ad-slot="8702436904"
    		data-ad-format="auto">
              </ins>
    	  <script>
    	    (adsbygoogle = window.adsbygoogle || []).push({});
    	  </script>
        </div>
      </div>
    </div><!--/#header-ads-->

    This error is displayed in Goggle Developer Tools:

    pagead2.googlesyndication.com/pagead/js/adsbygoogle.js:56
    Uncaught Error: Cannot find a responsive size for a container of width=0px and data-ad-format=auto

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Header Ad is not showing after updating WP to 4.1.2’ is closed to new replies.