Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #781651

    Hi,

    I’m having trouble inserting my Google Adsense code into the Text Widget box, to be displayed in the footer or sidebar. When I enter the code into the text widget box and click save, it shortens the code into the following:

    <!– WordPress –>
    <ins class=”adsbygoogle”></ins>

    (adsbygoogle = window.adsbygoogle || []).push({});

    It then just displays this as text.

    Please can anyone advise what I’m doing wrong and how to display ads using the Widget function?

    I can get the ads to display without issue on the main body of my pages.

    Thanks for your time.

    Tim

    #781672

    Hey Timothy,

    Please refer to the following thread which may provide the exact solution you need:

    (Purchase code hidden if logged out) -code-into-enfold/” href=”http://www.kriesi.at/support/topic/ (Purchase code hidden if logged out) -code-into-enfold/”>http://www.kriesi.at/support/topic/ (Purchase code hidden if logged out) -code-into-enfold/

    Best regards,
    Jordan Shannon

    #781680

    Hi Jordan,

    Thanks for your reply.

    It doesn’t explain why when I paste the code into the text widget, it automatically shortens it. Surely I should just be able to insert the Adsense code into the text Widget?

    Kind Regards,

    Tim

    #781697

    Hi,

    Is this a self-hosted site, meaning not hosted on wordpress.com

    Best regards,
    Jordan Shannon

    #781720

    Hi Jordan,

    Thanks for your reply.

    Yes it’s hosted on a different server.

    Kind Regards,

    Tim

    #781762

    Hi,

    Please use this plugin: http://wordpress.org/plugins/insert-html-snippet/ to insert raw js or css code into the text box. Our theme uses the wpautp() function to sanitize the text content and maybe it does not interpret your raw code properly. Please attempt this fix and the one I linked you to above. If neither of them work then we will investigate further.

    Best regards,
    Jordan Shannon

    #781805

    Okay will give that a go. Thanks Jordan.

    #781806

    Hi,

    No problem. Let us know how it turns out.

    Best regards,
    Jordan Shannon

    #782524

    Hi Jordan,

    Just to advised that I installed: https://wordpress.org/plugins/ (Purchase code hidden if logged out) -adsense-insertion/

    and this fixed the issue – I can now place Adsense adverts in the Sidebar widgets.

    Thanks for your help,

    Tim

    #782527

    Hi!

    Happy you can solve it
    Please feel free to let us know if there is anything else you might need.

    Thank you

    Best regards,
    Basilis

Viewing 10 posts - 1 through 10 (of 10 total)

The topic ‘Google Adsense Code’ is closed to new replies.