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
Advertisement: Start affiliate market with PepperJam. Tons of great affiliates to promote and make money with.
from Blog About Your Blog











Leave a Reply