fbpx
9

How to enable Adsense on your WordPress single posts only

Posted on 5th March, 2006

This simple tip lets you enable Adsense on your single posts if you do not have the single.php file in your theme.

To do this, perform the following steps.

  1. Login to you WordPress administration panel, then go to Presentation > Theme Editor.
  2. Open index.php and add the following code where you want your Adsense to appear

    <?php if (is_single()) {
    Put your Adsense code here
    } ?>

  3. Press ‘Update File’ to finalize the changes.
Related Posts
No related posts for this content
Victor
 

An engineer by training, Victor has been working full-time online as an Internet marketer, a programmer and an app developer since 2001. He has been blogging at Sabahan.com since 2006 sharing his experience and teaching people how to make money online. Click here to join his private Facebook Group for bloggers.

  • If we owned a WordPress blog, how many comments we approved on a single post?
    Is there any limitations for comments on blog posts, how many comments we approve on a single blog post??

  • hamdyy says:

    please help me how to put adsense ads between posts
    http://forexhandeln.blogspot.com
    Many thanks for helping

  • […] You can also save bandwidth with this plugin by having your readers view a full post only if they actually want to read it. Also, instead of cluttering you main page with ads, you can include post specific ads which can only be seen by the reader when they view the full post. […]

  • korokmu says:

    ok, i got your point. thanks

  • Gaman says:

    In a way, you can do that but showing Adsense code anywhere in your post is one thing, but showing only a few of the Adsense blocks on certain posts/page, while disabling the other and vice versa is another thing

    The option will enable all the Adsense blocks instead of one or two so you have lesser control. The option alone does not do what I wanted.

    But for most people, the option alone is good enough for their needs. 🙂

  • korokmu says:

    no you don’t need the code. on the adsense deluxe admin panel, there are options,where to put the ads

  • Gaman says:

    Yea, I’ve been using Adsense Deluxe and infact it’s listed in my top 10.

    But if you want to enable Adsense on a single post only, you’ll have to tweak and add the code. Otherwise, your ads will be shown on your homepage too.

  • Stu says:

    You could also use the excellent Adsense Deluxe plugin at http://www.acmetech.com/blog/adsense-deluxe/

  • […] You can also save bandwidth with this plugin by having your readers view a full post only if they actually want to read it. Also, instead of cluttering you main page with ads, you can include post specific ads which can only be seen by the reader when they view the full post. […]

  • >
    Scroll Up

    Sign Up Below... For Tips and Tools to Help You Build a Better Blog

    >> Sign Up Now and get access to:


    • chevron-circle-right
      The exact methods I use to make money
    • chevron-circle-right
      Resources to increase traffic to your blog
    • chevron-circle-right
      The latest updates from Sabahan.com

    We hate spam. Unsubscribe anytime.

    arrow-down
    0 Shares
    Pin
    Share
    Tweet
    Share