• Resolved anticambriolage

    (@anticambriolage)


    Hello,

    I use and I enjoy Hueman Theme. I use the primary sidebar width 300px.

    I have a problem to use an adsense block (300*250px) in the sidebar. I use my code adsence in the “enhanced text widget” but when i visit the site, the block is not visible.

    I try a lot of actions without success.

    Please Help me !!

    My code adsense :

    <script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
    <!– adbloc –>
    <ins class=”adsbygoogle”
    style=”display:inline-block;width:300px;height:250px”
    data-ad-client=”ca-pub-9225960871888364″
    data-ad-slot=”4601408789″></ins>
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({});
    </script>

Viewing 5 replies - 1 through 5 (of 5 total)
  • I’m having the same problem. I have added an adsense block to my header.php and single.php files by pasting the code in and they appear just fine. but when I use a text widget to try and put an ad in the sidebar I just get a blank space.

    Just an update to say if you insert the ad code directly into sidebar.php it works. So this seems to be a problem with inserting into widgets. I’ve never had such an issue before but can’t understand how this can be theme related…

    Perhaps try some other widget, like:
    http://wordpress.org/plugins/advanced-text-widget/

    I’ve got adsense working in text widgets on my site. I’m using the WP.org theme directly version.

    http://futureexpat.com

    It did take a day or so for them to show up when I first created the ad/channel and inserted them, but I think that was because it was a new ad and no one had bid on my site yet.

    I’m still having a problem with the ad I put in my header. The css isn’t hiding the header banner ad on mobile devices and it’s too big for a cell phone.

    CSS that I pulled from another thread and put into my css plugin:

    .ads-header-desktop { display: block; }

    @media only screen and (max-width: 800px) {
    .ads-header-desktop { display: none; }
    }

    .ads-header-desktop {
    display: block;
    float: right;
    margin-right: 20px;
    margin-top: -115px;
    }

    Thread Starter anticambriolage

    (@anticambriolage)

    Thank you for the reply, my problem is solved…

    No announcement appears when I am logged in as administrator but when I am not connected the display works…

    Best Regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Ad Adsense block in sidebar of hueman theme’ is closed to new replies.