WordPress.org

Ready to get started?Download WordPress

Forums

Ad Injection
Ads not appearing in IE - Ad-Injection and Swift theme (9 posts)

  1. marcomancosu
    Member
    Posted 1 year ago #

    Hi,

    I'm using this plugin with Swift Theme. While everything is fine in Firefox, I can't see any ads in IE. I don't know whether this is an issue with this plugin or with Swift.
    It's not a caching issue, I have tried disabling most of my plugins, I removed WP Super Cache, cleared the cache of the browser, but nothing changed. Would you have any ideas on how to fix this?
    Thanks
    the website is: http://www.ottimizzazione-pc.it

    http://wordpress.org/extend/plugins/ad-injection/

  2. reviewmylife
    Member
    Plugin Author

    Posted 1 year ago #

    Hi marcomancosu, have you checked the source code of your page to make sure they are there when using IE?

  3. reviewmylife
    Member
    Plugin Author

    Posted 1 year ago #

    Deleted - posted comment on wrong post!

  4. marcomancosu
    Member
    Posted 1 year ago #

    Thanks reviewmylife.
    The code seems to be there.
    This is how it appears in FF:

    <div style='clear:both;margin-top:0px;margin-bottom:0px;padding-top:0px;padding-bottom:0px;'><center><script type="text/rocketscript"><!--
    google_ad_client = "ca-pub-XXXXXXXXXXXXXXXXXXXX";
    /* Leaderboard */
    google_ad_slot = "XXXXXXXXXX";
    google_ad_width = 728;
    google_ad_height = 90;
    //-->
    </script>
    <script type="text/rocketscript" data-rocketsrc="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script></center></div>

    while in IE the code is
    <div style='clear:both;margin-top:0px;margin-bottom:0px;padding-top:0px;padding-bottom:0px;'><center><script type="text/rocketscript">google_ad_client="ca-pub-XXXXXXXXXXXXXXXXXXXX";google_ad_slot="XXXXXXXXXX";google_ad_width=728;google_ad_height=90;</script> <script type="text/rocketscript" data-rocketsrc="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></center></div>

  5. marcomancosu
    Member
    Posted 1 year ago #

    sorry I forgot the backticks. This is the code in IE:

    <div style='clear:both;margin-top:0px;margin-bottom:0px;padding-top:0px;padding-bottom:0px;'><center><script type="text/rocketscript">google_ad_client="ca-pub-XXXXXXXXXXXXXXXXXXXX";google_ad_slot="XXXXXXXXXX";google_ad_width=728;google_ad_height=90;</script> <script type="text/rocketscript" data-rocketsrc="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></center></div>

  6. marcomancosu
    Member
    Posted 1 year ago #

    (I don't know why the backticks don't work)

  7. reviewmylife
    Member
    Plugin Author

    Posted 1 year ago #

    Hi marcomancosu, I'd suggest you try inserting the adverts without Ad Injection. See if you get the same problem. If you do get the same problem see if you can see any JavaScript errors/warnings listed by IE. Also those 'rocketscript' lines aren't standard JavaScript - perhaps you have some script optimiser on your site which is breaking things.

  8. marcomancosu
    Member
    Posted 1 year ago #

    Thanks for your help! The problem was the rocketloader feature in CloudFlare, an optimization feature that was supposed to automatically asynchronously load all JavaScript resources (that's where the rocketscript lines come from). After disabling that feature in the CloudFlare settings the ads are now properly displayed in IE. Rocketloader created a few more issues in IE (issues with top navigation menĂ¹, and Google Adsense for Search not working) but now everything is fine. Leaving this notes as they might be useful to somebody else.
    Thanks again!

  9. reviewmylife
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for letting us know :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic