Graphene removing parts of AdSense Code

  • medX



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

    On my website 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="//"></script>
    <!-- FSGP (Default) -->
    <ins class="adsbygoogle"
    (adsbygoogle = window.adsbygoogle || []).push({});

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

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

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




    Kenneth John Odle


    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.



    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.