Feb 19 2009

Removing Google Adsense in Single Posts

As I mentioned before, I am giving Social Spark a Shot. So far it’s been okay, but I ran into a problem with displaying Google Adsense in my post. One of my blog is heavily monetized with Google Adsense, with it set to run within blog posts. With Social Spark or PPP you are not allowed to have any other form of advertising within your post. So, after doing a search I found a great way to remove Google Adsense on only certain posts.

Removing Google Adsense Within Posts

Instead of removing the entire Adsense code, you can just modify it so you can display adsense within certain posts.

Go to your single.php file within your theme and find your Google Adsense code. Then use a div tag like this:

<div id=”nogoogleads”>

Google Adsense Code

</div>

After that simply save your single.php file. This is the first step to a simple process.

To have Google Adsense not show in your posts then while your writing your blog post add the code:

<style>#nogoogleads {display:none !important;}</style>

You can always use plugins for this, but I have it set up with a Google Adsense ready theme so it wouldn’t really work with what I’m going for.

Thanks to ThumLog for their great post on this great technique.

Related Posts

33 Comments on this post

Trackbacks

  1. How to Remove or Disable Adsense Ads on Single Post | Komku.Net wrote:

    [...] to this blog, now I can remove/disable adsense ads on single post… All you need to do is just follow these [...]

    July 25th, 2009 at 6:23 pm
  1. Jhangora said:

    Cool. Thanx a lot for sharing the tip Matthew. Very helpful.

    February 19th, 2009 at 11:53 pm
  2. Youth Soccer Rules said:

    Sweet – I have been looking for something like that for ages
    I have a few blogs heavily monetized with Adsense, so this is just what I need

    February 21st, 2009 at 5:11 pm
  3. pdr tools said:

    This is a cool tip. Does it matter where you put the “nogoogleads” code when you write the post? I assume it should go in the html somewhere but didn’t know if it mattered where.

    February 25th, 2009 at 6:35 am
  4. Tom - Home Business Marketing Tips said:

    Thanks for the tips.I have been using WP plugins to manage my adsense ads.If I need to do it manually I can use this code.Thanks!

    February 25th, 2009 at 8:00 am
  5. Minnesota Attorney said:

    Great tip! I’ve been wondering how to do that or even if it were possible.

    February 27th, 2009 at 11:48 am
  6. Top Underwater Digital Camera Reviews said:

    Thanks for the great tip – I could never understand how to do this when I really wanted a clean post free of ads – I think there is a WP plugin but I never used it :(

    February 28th, 2009 at 11:32 pm
  7. Kawasaki motorcycles said:

    There is no way you can remove the pharse “Ads by Gooogole”, even if
    you can, it is not allowed under Adsense TOS.

    March 2nd, 2009 at 10:06 pm
  8. Choose Your VoIP said:

    Now, this is one of the wisest tips I have read so far. Thank you for sharing this.

    March 3rd, 2009 at 10:02 am
  9. first $100 said:

    I’ve always been looking for this tip. How to quickly remove adsense from google. Thanks so much for these tip Matt and keep it up!

    March 4th, 2009 at 11:17 am
  10. Snake taming said:

    This is a great tip. I’ve been looking for a way to do this, but kept finding myself stuck with plugins. Will give it a shot tomorrow.

    March 7th, 2009 at 12:28 am
  11. Dintz said:

    looks like a great tip, but why exactly would we want not want to do this?

    March 7th, 2009 at 9:00 am
  12. First $100 said:

    Nice share! Every internet marketer always knows what’s the best for our site, one can be effective and others may not. Thanks.

    March 11th, 2009 at 12:14 am
  13. Free Games Gallery said:

    How has social spark been working for you so far? I see in this post a google ad is showing up now, so did you get rid of social spark?

    March 15th, 2009 at 6:28 am
  14. Olga Betrieb said:

    It’s really good that you’re able to sort the adsense post by post because some posts simply shouldn’t have advertising in them and are good enough to stand alone.

    March 17th, 2009 at 1:09 pm
  15. Albert said:

    Is this really working on all themes on WP?

    March 19th, 2009 at 1:31 am
  16. Helen Hunt said:

    Thanks for this awesome tip. As a blogger myself, this wass something that have caused me endless headaches, but that will now be confined to history …hurray :)

    March 25th, 2009 at 7:16 am
  17. Varun said:

    gr8 tip.. not seen before in any blogs or forums

    Thanks mathew!

    March 29th, 2009 at 11:56 pm
  18. Minnesota Attorney said:

    This is a great example of the powerful ways to use div tags. Excellent tip.

    April 1st, 2009 at 6:23 am
  19. charmist11 said:

    How is Social Spark doing so far? Is it better than Adsense?

    April 2nd, 2009 at 9:45 am
  20. marco said:

    good article , thanks

    April 7th, 2009 at 4:54 am
  21. Matthew Henrickson said:

    Social Spark has been kind of a disappointment, I will post an update on it soon.

    Google Adsense has finally become a pretty steady income for me, besides affiliate marketing, it’s a pretty good earner.

    April 9th, 2009 at 3:06 pm
  22. Dorset web design said:

    I have a free website, I am really interested in getting a better listing for my site, (i’m on search page 100 or something like that) if I put adsense would my website show up higher when someone searches for it? Can adsense be removed once it is on a site? Has anyone tried it?

    April 21st, 2009 at 10:43 am
  23. SD @ Discount Airfares said:

    That’s an interesting idea, but you do realise that they’re still going to show as ad impressions in you adsense account, affecting your CTR, and as a consequence, possibly causing you to be smartpriced, don’t you?

    Just sayin….. ;-)

    April 29th, 2009 at 6:00 pm
  24. Mikhail Subach said:

    Thank you for the post! I’ve helped me to remove adsense code on custom print page!

    May 30th, 2009 at 8:33 pm
  25. TV Series and TV Episodes said:

    Maybe I can use this tweak on some of my site. One of my reason why I am building some sites is to earn money from it with the Google Adsense. Thanks for the tip.

    May 31st, 2009 at 2:31 am
  26. Chris - SEO said:

    SD-

    That’s a good point… Can you share if it does appear to affect your CTR?

    June 4th, 2009 at 6:38 pm
  27. Cash Back said:

    Good trick Matthew. This could come in handy for all the people who have their adsense code in a separate file, but they need to hide adsense on some pages. Thanks man.

    June 8th, 2009 at 1:17 pm
  28. film said:

    I’ve always been looking for this tip. How to quickly remove adsense from google. Thanks so much for these tip Matt and keep it up!

    June 13th, 2009 at 4:26 am
  29. Codrut Turcanu I Affiliate Expert said:

    hmm… I stopped using adsense ads on individual posts long time ago!

    June 29th, 2009 at 4:26 am
  30. Volksphone said:

    Thanks for sharing. Trying this for along time. I am no developer so it is great to see that there are people like you that gives us the information we need.

    Cheers,
    Volksphone!

    September 22nd, 2009 at 2:30 am
  31. Dave @ The Dog Blog said:

    Nice one. Exactly what I was looking for. Worked like a dream. Thanks for the help it’s appreciated.

    November 10th, 2009 at 3:02 am
  32. Nail said:

    That’s a really nice solution. I tried this on my personal blog and it worked well. I have some posts that are not aimed for ads that’s why I needed something like this.

    January 2nd, 2011 at 2:32 am

LEAVE A COMMENT

Subscribe Form

Subscribe to Blog

UBD Moneymaker Theme by Unique Blog Designs & Phillip van Coller. Header designed by Israel of Fat Man Unleashed.