• Hi all,
    my site is https://www.80s.it and i’m using wp 4.5

    Everything works fine after the update to the new Hueman but…the header widget is inactive.
    I try to put in it the search and the text widget (with the google adsense code) but it doesn’t work.

    The “display a widget in your header” voice in the Header>header advertisement widget is selected.
    What’s wrong?

    Thanks in advance,
    Daniele

Viewing 15 replies - 1 through 15 (of 19 total)
  • Hi,

    Go to Appearance -> Customize -> Header -> Header Advertisement Widget
    And check the setting to enable.

    Go to Appearance -> Customize -> Dynamic Sidebars and Widgets -> Header ads to deploy your widget

    If you are using a child theme with modified header.php, you will need to copy over the new header.php and redo your modifications.

    Thank you.

    Thread Starter carioti

    (@carioti)

    Hi Denzel, thank you for your attention but..
    I already set it up the appearence’s header section as you pointed and deleted the header.php in my child theme but not only that ad-matter remains: now I can’t set the header image too.

    Thread Starter carioti

    (@carioti)

    Hi guys, thanks again.

    I don’t know what it happened but without changing anything, now the ad section works. I just “play” inserting and deleting images on the header section and, I don’t know why, now the ads section is active.

    But I still can’t see google’s ad displayed.

    I will try putting that code in my style.css’ child theme (is it the same, msfndotorg?) and let you know the outcome.

    Thank you again.

    Thread Starter carioti

    (@carioti)

    update, unfortunately negative.

    this is my custom.css file

    /*
    @fromfull
    Add your custom styles in this file instead of style.css so it
    is easier to update the theme. Simply copy an existing style
    from style.css to this file, and modify it to your liking.
    
    When you update your theme, backup this file and re-add it after.
    */
    
    /* Global */
    .mystyle {}
    
    /* Tablet - 800px, 768px & 720px */
    @media only screen and (min-width: 720px) and (max-width: 800px) {
    	.mystyle {}
    }
    
    /* Mobile - 480px & 320px */
    @media only screen and (max-width: 719px) {
    	.mystyle {}
    }
    
    /* Mobile - 320px */
    @media only screen and (max-width: 479px) {
    	.mystyle {}
    }
    
    @media only screen and (max-width:1380px) {
        #header-ads {
            width: 800px;
            height: 90px;
        }
    }

    but I can’t see the google-ad yet.

    The weird thing is that if I put the same widget in the footer ads section, it works perfectly (as you can see, the google code in the widget is the same)

    thanks again

    There is a text widget with the googleads script in your footer. There isn’t anything in the header ads container:

    <div class="group pad">
        <h1 class="site-title"><a href="https://www.80s.it/" rel="home"><img src="https://www.80s.it/wp-content/uploads/2016/04/logo-2.png" alt="the 80s database"></a></h1>
    
            <div id="header-ads">
                 </div><!--/#header-ads-->
    
    </div>
    Thread Starter carioti

    (@carioti)

    there was not when you checked it out ??
    check now please

    Can you leave a copy in the footer so we can see them both?

    I had issue with header ads widget. Problem was AdBlocker plugin in browser.

    Issue fixed: in themes header.php file changed ONLY DIV element ID from header-ads to header-widget, because AdBlock reads ID’s and disables it.

    Also changed #header-ads to #header-widget in style files(used Notepad++ to find):
    \assets\front\css\main-not-responsive.css
    \assets\front\css\main-not-responsive.min.css
    \assets\front\css\main.css
    \assets\front\css\main.min.css

    Also I did the same with footer-ads.

    Theme creators should avoid words like ‘AD’.

    If AdBlocker is the issue then you could look at some options in this google search.

    Thread Starter carioti

    (@carioti)

    I made it right now brbrown.
    Consider there are now three identical g-ads text widgets on the homepage (ads, primary sidebar & footer) but only last two work.

    thank you again

    Something is definitely wrong with header style coding. Ads are not resizing and don’t work as intended.

    Just a guess but it looks like the javascript in the header ads text widget isn’t running. Off the top of my head I don’t know why that would be. Can you post the adsense code that you’re putting into the text widgets? I’d like to try in on a test site.

    Thread Starter carioti

    (@carioti)

    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <!-- Prima AD -->
    <ins class="adsbygoogle"
         style="display:block"
         data-ad-client="ca-pub-1340103107246741"
         data-ad-slot="9587152717"
         data-ad-format="auto"></ins>
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({});
    </script>

    I was able to run the ads script in a footer widget but it doesn’t work in the header ads widget, as you’ve indicated. I also pasted the script directly into header.php and it runs there. So it’s something about the header ads widget. I’ll enter a ticket for the developer and see if he can determine the issue.

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘header ads inactive’ is closed to new replies.