• Hey, i’m having a little problem with my site. I put in Google Adsense code, and it works fine in Internet Explorer, but when viewed in Firefox, it doesnt show at all. I emailed google about it, and they said this:

    When viewing your site’s source code through the different
    browsers, there are some differences in the code. Therefore, it appears
    that while your ad code is correct, your webserver is rendering different
    code for the two browsers. We kindly suggest that you check your
    webserver, in particular, you may wish to look at the CSS templates that
    are being used for both browsers.

    And then they proceeded that they cannot help me with problems between IE and Firefox, so im hoping someone here has a solution to this problem. My site is https://www.mightymichael.com . Thanks for the help

Viewing 11 replies - 1 through 11 (of 11 total)
  • What are they smoking over there in Mountain View these days? I’d like some.

    If I download your page, as-is, as an html document and open it locally, the ad looks fine. I’m suspecting something about your server is causing the problem; when I first tried to download the page, Firefox told me it was an MS-DOS app (because your site ends in .com), and opening then trying to retrieve index.php reported it as a png image. These are system defaults on my pc.

    One off-the-wall suggestion: try removing the xml tag at the top of the template generating your header:

    <?xml version="1.0" encoding="UTF-8" ?>

    Thread Starter swbball28

    (@swbball28)

    well basically i took off the code that checks to put the site in xhtml or html. and that made the google ads show. but now the calender was all messed up, and didnt show up at all except for the dates that i had posts on, so i took it off the code, any way to get the calender to work without xhtml?

    Ahhhhhhhhhh…………….. THAT was the reason ! (We had tried for a while in #wordpress to solve this one)

    With the calendar, was it that dates not posted did not appear ? if so, that’s just adjusting the CSS. If you pop it back in and post here, it’s sortable.

    swbball28: Look back up at the line I suggested removing. You should be fine returning the DOCTYPE tag (that had been just after the one I pointed out).

    Thread Starter swbball28

    (@swbball28)

    i coudnt find that code anywhere: <?xml version=”1.0″ encoding=”UTF-8″ ?>

    before the head, all it said was this: require(‘xhtml-or-html.php’);

    so i took that off, and the google worked perfectly. but now look at the calender how retarded it looks, it changed the font, size, color everything. how can i make it look how it used to look?

    Well add the DOCTYPE back (as a regular line, not the require), so we can see how that works out. As I copied the xml tag from your source, it was being generated by something. I assume it’s hiding in the xhtml-or-html.php.

    Any idea where the xhtml-or-html.php comes from? Part of the theme?

    Edit: Copy the DOCTYPE tag from the default or classic theme’s header.php.

    Thread Starter swbball28

    (@swbball28)

    you guys are animals, check it out, it works perfectly, ads show in IE/firefox as well as the calender! thanks a lot guys!

    Thread Starter swbball28

    (@swbball28)

    well now that I made these changes, when I go to my free site proof page ( https://mightymichael.com/?page_id=7 ), which had html tables containing pics, the tables do not show up. any ideas on how I can get this to work?

    Thought I’d throw this in here for others. I was having the exact same problem. Then it dawned on me that my adblock extension in Firefox had the google ads blocked. Sure enough, some time ago, I blocked an annoying google ad, and that’s why they were showing up in IE and not Firefox. For me anyway.

    How ironic I blocked google ads, and now am putting them on my site.

    pman12345

    (@pman12345)

    I can’t get the ads or the referrals to show up in firefox either. I can’t even find <?xml version=”1.0″ encoding=”UTF-8″ ?> anywhere.

    Can someone please help me!

    Here’s the site: https://theywantpie.com

    PLEASE!

    Having the same problem here. Couldn’t find any XML declaration or xhtml-or-html.php in the templates.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Google Adsense not working in Firefox, but working in IE’ is closed to new replies.