Submit Your Article Forum Rules

Results 1 to 4 of 4

Thread: Block Google Adsense From Certain Posts

  1. #1
    WebProWorld MVP
    Join Date
    Oct 2006
    Posts
    1,254

    Block Google Adsense From Certain Posts

    How to block Google Adsense from certain posts in wordpress?
    Basically, when I use the ads code in single.php, then Ads show up at the same spot.
    In this situation, I do want to block the Ads from appearing on certain blog posts so that I could strictly adhere to the Adsense guidelines.
    Please help me to fix the problem.

  2. #2
    WebProWorld MVP
    Join Date
    May 2004
    Posts
    1,656
    Why not do it the other way around? Take all of the AdSense code off of your site and then manually add the code to certain posts?
    Follow me on Twitter, I'm bhartzer or like my page on Facebook.

  3. The Following 2 users agree with bhartzer:
  4. #3
    Junior Member
    Join Date
    Apr 2010
    Posts
    27
    This can be achieved with the plugin "Adsense Injection." Once you install it, you can specify certain posts where you don't want the ads to appear. I usually remove ads off any page that doesn't have content, such as the Term of Service, Privacy Policy, About Us, Contact Us, etc. etc.
    Credit Card Balance Transfer Offers.com | A simple way to save money on pesky credit card debt.

  5. #4
    WebProWorld MVP
    Join Date
    Oct 2006
    Posts
    1,254
    Quote Originally Posted by bhartzer View Post
    Why not do it the other way around? Take all of the AdSense code off of your site and then manually add the code to certain posts?
    Right now! I'm using this approach on one of my blogs.
    To be frank, it is a tedious approach.

    To get rid of that, I thought of using the code through out the blog minus certain pages.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •