• Resolved congtoanx

    (@congtoanx)


    Dear Hueman admin!

    I’m using Hueman free theme, i very like this theme and used it 3 years ago.
    But today, i have update my Google adsense code then check again my theme after update new Google adsense code >>> my theme to deviation is worse than before, specific:

    My standart code is: (i have using widget Text and change from Visual to Text then i paste the Google adsense code)

    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <!-- 728x90, ???c t?o ra 11/12/2008 -->
    <ins class="adsbygoogle" style="display: inline-block; width: 728px; height: 90px;" data-ad-client="ca-pub-xxxx" data-ad-slot="xxxx"></ins>
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({});
    </script>

    But theme automatically insert <br> code in my theme, specific:

    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <!-- 728x90, ???c t?o ra 11/12/2008 -->
    <br>
    <br>
    <ins class="adsbygoogle" style="display: inline-block; width: 728px; height: 90px;" data-ad-client="ca-pub-xxxx" data-ad-slot="xxxx"></ins>
    <br>
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({});
    </script>

    Hear is my pitures:
    https://preview.ibb.co/dnkQ5F/Code.jpg
    https://preview.ibb.co/kwm9Xv/Widget.jpg

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

    That’s not added by Hueman theme. The br tags are added by WordPress text widget.
    You can switch to Twenty Eleven Theme and check it out again.

    Please see my screen-cast https://screencast-o-matic.com/watch/cbibcCl097
    You can see that I had activated Twenty Eleven Theme and added your adsense code in a text widget, viewed the source code and you can see the widget added br tags.

    Since the new WordPress text widget does not work for you, you may want to find a plugin that lets you setup google ad sense as a widget.

    Thank you

    Thread Starter congtoanx

    (@congtoanx)

    Thanks Denzel Chia for help, i have fix solution by using Plugin adsense.

    Hi @congtoanx,

    You are welcome!
    Glad to be of some help. ??

    Please kindly mark this thread as resolved.

    Thank you

    Thread Starter congtoanx

    (@congtoanx)

    Ok Denzel Chia, i’ve done. Good look to you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Theme auto put code in the Google adsense Widget’ is closed to new replies.