• Resolved kb3hfp

    (@kb3hfp)


    For some reason, ever since I tried to add the new FireFox AdSense referrals code to my sidebar, all AdSense on the sidebar stopped working. I’ve tried switching themes, removing the FireFox referral code, and several different things, but nothing seems to work.

    Here’s how I have the code set up in the sidebar:

    <h4>ads by google:</h4>
    <div class=”rightsideSection”>
    <script type=”text/javascript”><!–
    google_ad_client = “–REMOVED–“;
    google_ad_width = 120;
    google_ad_height = 600;
    google_ad_format = “120x600_as”;
    google_ad_type = “text”;
    google_ad_channel =””;
    google_color_border = “CCCCCC”;
    google_color_bg = “FFFFFF”;
    google_color_link = “000000”;
    google_color_url = “666666”;
    google_color_text = “333333”;
    //–></script>
    <script type=”text/javascript”
    src=”https://pagead2.googlesyndication.com/pagead/show_ads.js”&gt;
    </script>

    When I run it locally without CSS, it works perfectly, but as soon as it’s live on the server (pghscan.com, if you’re interested), nothing shows up. Any ideas?

    TIA,

    Mike

Viewing 9 replies - 1 through 9 (of 9 total)
  • This is not a WP issue. Ask where you got the code…

    Thread Starter kb3hfp

    (@kb3hfp)

    The code is generic AdSense code, straight from the AdSense interface. The reason I’m thinking that it’s a WordPress issue is because it works when it’s run from my sidebar.php locally (with CSS not applied, haven’t tried it with) but as soon as it’s live on the server, it won’t run. This is with multiple themes, so it’s not a theme issue.

    Running your ads – is still not a WP issue.

    Thread Starter kb3hfp

    (@kb3hfp)

    I don’t get where you’re coming from – as I said before, the ads run perfectly in HTML outside of WordPress. When they’re in the WordPress sidebar, they don’t run. Seems to make sense that this is a WordPress issue, even if the issue is that I might have done something wrong in putting the code in my sidebar.

    Its a Google thing. If you do a search for “adsense not working” youll see tons of posts on the same thing. It is a google thing, and usually starts working correctly in a day or so. Why it does this? Who knows.. youd have to ask google. But its still a google thing and not a WP thing.

    Thread Starter kb3hfp

    (@kb3hfp)

    That was my first thought, but it seems odd that it’d happen immediately after I added new AdSense code. But you may be right – I’ll give it a few days and see what happens. Thanks!

    Thread Starter kb3hfp

    (@kb3hfp)

    As it turned out, it wasn’t a Google OR WordPress issue – Dreamweaver was doing something to the code that was keeping it from working. Not sure exactly what, but when I put it in manually, it worked fine. I knew there was a reason I should be handcoding my HTML. ??

    Thanks for posting back with your solution, so the next person with the problem can find the info!

    Thread Starter kb3hfp

    (@kb3hfp)

    While I’m at it, Dreamweaver was also causing trouble with themes – any time I made any edit in index.php (within Dreamweaver) it’d stop working and give me an error on the server. The solution: HANDCODE!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘AdSense suddenly stopped working’ is closed to new replies.