Support » Theme: GeneratePress » Adsense ads not showing on header

  • Resolved alve39


    Adsense ads not showing on header, only sidebar ads are showing.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Theme Author Tom


    Hi there,

    Are you adding it to the header widget? If so, what kind of ad? Is there enough space for it?

    Try adding this CSS:

    .header-widget {
        max-width: 100%;
        overflow: visible;

    Let me know 🙂

    Yes, I’m adding the code to the header widget. I choose responsive ads and added the css code you gave, but still ads does not show up.

    Anything else I can try?

    Theme Author Tom


    Just read through this:

    What if you add this?:

    ins {
        min-width: 300px;
        min-height: 50px;

    Thanks for replying. I just added the new code you gave. Now ads appear, but even when I refresh the page several times, only vertical ads are displayed. As you can imagine, vertical ads do not look very good on header.

    If you can find a solution to this problem, please reply.


    Hey Tom, I found the solution. I followed the instruction by google from this page

    And I added this css code
    @media(min-width: 500px) { .headerAds{ width: 468px; height: 60px; } }
    @media(min-width: 800px) { .headerAds{ width: 728px; height: 90px; } }

    <ins class=”adsbygoogle headerAds”
    (adsbygoogle = window.adsbygoogle || []).push({});

    and removed the code “data-ad-format=”auto”

    Now ads are showing the way I need.

    Theme Author Tom


    Awesome, glad you got it working 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Adsense ads not showing on header’ is closed to new replies.