Return to Support

Graphene removing parts of AdSense Code

Home Forums Graphene WordPress theme Support Graphene removing parts of AdSense Code

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #10336
    medX
    Member

    Hi,

    I am using Graphene 1.9.4.2 and like it very much! I posted this thread in error in the General forum already, please forgive me.

    On my website http://www.fachschaft-gp.de I like to implement AdSense Code. If I use the Graphene Theme option for inserting Adsense Code the Code is saved but parts of it are deleted, please see below:

    Original AdSense code from Google which I insert in Adsense Code box of Graphene Theme:

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

    After saving some code is deleted. Please see the result below:

    <script src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <!-- FSGP (Default) -->
    <ins class="adsbygoogle" data-ad-client="ca-pub-xxxxxxxxxxxxxx" data-ad-slot="xxxxxxxxxxxx"></ins>
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({});
    </script>

    Do you have any ideas what is going wrong? Is this a bug?

    Greetz

    Joe

    #45929

    It’s not a bug in Graphene. Try temporarily disabling your plugins, emptying your server cache, and reloading the page to rule out a plugin issue.

    #45930
    medX
    Member

    Thanks for the hint but that didn’t work. I might try the Google AdSense Plugin.

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

You must be logged in to reply to this topic.