Add Google Adsense ads after post title in thesis

by Daniyal Hasan · 0 comments

When we put any ad in sidebar there we do not much click and our earning is also very low. So for putting Google Adsense ads is a very good idea to make some more revenue for our blog. From here we can some more clicks here and also here we can make our posts and blog design effective.

This looks like this. See it and imagine.

Add Google Adsense ads after post title

First of all login to your WordPress Dashboard.

Go to Thesis tab and click on Custom File Editor and select custom_functions.php . 

Now login to your Google Adsense account and create an ad unit of size 468*60 if you want to create a size like me. You may choose any size.

function below_post_title() {
 if (is_single()) {?>
 <script type="text/javascript"><!--
 google_ad_client = "ca-pub-xxxxxxxxxxxxxxx";
 /* Your Ad Name */
 google_ad_slot = "xxxxxxxxxx";
 google_ad_width = 468;
 google_ad_height = 60;
 <script type="text/javascript"
 <?php }
add_action('thesis_hook_before_post', 'below_post_title');

Just copy this cope and place it to your custom_functions.php file. You need to replace this code from your own created Adsense Ad Unit. I have putted it in Red color. Now click on Save button. You are done.

Note: Please make sure that ads will appear after 20 minutes in your site.

Leave your comments here if you are getting any problem.  Thanks for reading.

Enjoyed this article?
Then subscribe us here by just filling your email.
We hate spam just as much as you

Article by Daniyal Hasan

Daniyal Hasan Founder and CEO of He is from India and is a passionate blogger who writes about Social media,Technology,affiliate marketing. You can read more here.

Daniyal has written 37 awesome articles.

Leave a Comment

Previous post:

Next post: