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.

{ 11 comments… read them below or add one }
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
@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.
How do I add adsense ad in thesis theme so that it appears only on single post pages?
@Suresh – Add a conditional tag to it. Something like:
if (is_single()) {good stuff. ive always struggled with wordpress edits..
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).
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.
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?
thesis_hook_before_postshould take care of that. Install for example Thesis Openhook and just insert your adsense code into that hook.Nice tip Marko, but I think there a lots of plugins for embedding google adsense in post pages with more options also.
I find this useful however I wanted to know if there’s any call tag something like this to be inserted on selected posts?