Insert Ads In Between Title And Content Of Your Blog Post

We had a look on how you can monetize your new blog site by using Google Adsense contextual ads advertising. We will now take a look at how to automate the process of inserting Google Adsense ads into your blog posts.

Instead of inserting ads manually blog post by post or blog page by page, you can automatically insert ads on top of each of your blog posts, in between the blog post title and the blog content. To do this, you just need a simple edit of your WordPress blog theme.

Find the Single Post (single.php) post in the Theme Editor menu in the Design section of your blog. Find the following part, usually around the top of the page. You need to insert your Google Adsense ad HTML code in between these blog lines:

<div class=”post”>
<?php the_content;?>

So it should look like this:

<div class=”post”>
YOUR ADSENSE CODE HERE
<?php the_content;?>

This way your Google Adsense ads will be inserted automatically in all your blog posts, in the archived posts and in the new posts that you write. The ad will be inserted in between the blog post title and the blog post content. You can see this in action on HowToMakeMyBlog.com.

Join thousands of bloggers and get all my blogging tips for FREE! Subscribe to HowToMakeMyBlog via RSS or via e-mail.

If you liked this article, you may also like:

  • Insert Ads In Between Blog Posts On Your Main Page
  • Make Money With Google Adsense Ads On Your Blog
  • The Simplest Way Of Increasing Your Blog Page Views
  • How to get magazine style WordPress blog with Thesis Theme teasers
  • Google Analytics For Your WordPress Blog
  • Post written by Marko Saric on November 11, 2008 in Monetize your blog

    { 11 comments… read them below or add one }

    1 TI February 17, 2009 at 9:24 am

    Reallly a cool stuff,, now I know how we can automatically insert ads in our post, and can earn more money by this.

    And one more thing , I would like to know, is there is any option so we can embed banner ads with post like we do in image case. as Image is on the corner and the text just passed by that, I would like to get the procedure for that…

    If available please share with us.

    thanks
    Abhishek

    Reply

    2 Marko Saric February 17, 2009 at 1:10 pm

    @TI – You can insert a banner the same way that you insert pictures. Then you can link the banner to your affiliate link and align it whatever way you want it to be. Same with any code, just use html align to place it wherever you want it to be.

    Reply

    3 Suresh June 2, 2009 at 9:26 am

    How do I add adsense ad in thesis theme so that it appears only on single post pages?

    Reply

    4 Marko Saric June 2, 2009 at 2:38 pm

    @Suresh – Add a conditional tag to it. Something like:
    if (is_single()) {

    Reply

    5 Jerry June 29, 2009 at 8:46 pm

    good stuff. ive always struggled with wordpress edits..

    Reply

    6 Jennifer August 24, 2009 at 8:44 am

    Can I use the same method to insert adsense ads between the title and the content in blogger? I would love to do that as blogger does not provide a way to do it (or at least I have not found one yet).

    Reply

    7 Marko Saric August 24, 2009 at 10:23 pm

    I don’t think that is possible. Blogger doesn’t provide you with many customization possibilities. I would recommend to get your own domain name and install WordPress.org on it.

    Reply

    8 Gustavo :: Gizmo 101 September 30, 2009 at 7:13 pm

    I have the thesis theme, how do I add adsense in between content and title? Does that code work if I put it in the custom php file?

    Reply

    9 Marko Saric September 30, 2009 at 10:50 pm

    thesis_hook_before_post should take care of that. Install for example Thesis Openhook and just insert your adsense code into that hook.

    Reply

    10 techprism October 25, 2009 at 10:02 am

    Nice tip Marko, but I think there a lots of plugins for embedding google adsense in post pages with more options also.

    Reply

    11 Mathdelane November 4, 2009 at 3:36 am

    I find this useful however I wanted to know if there’s any call tag something like this to be inserted on selected posts?

    Reply

    Leave a Comment

    Previous post:

    Next post:

    Marko Saric on FacebookMarko Saric on TwitterMarko Saric on YouTubeHowToMakeMyBlog RSS