Adding Adsense Into Thesis Wordpress Theme

by Harsh Agrawal on January 25, 2010

in Thesis Customization

This is a part of Shoutmeloud Question Answer round. If you have any question regarding Blogging , Wordpress, feel free to get in touch using contact form.

One of Shoutmeloud Reader Gagandeep asked

Hi Harsh,
can you tell me, how did you place the adsense revenue sharing code in thesis theme, and how to place Google ads below post title and at the end of post in thesis theme. Thanks :)
Regards
Gaganpreet Singh

thesis300x2501 thumb

There are many ways by which you can add adsense into Thesis wordpress theme. One easy way is adding adsense by using custom functions.php file. Though many users who are not very fond of editing custom_functions.php file. They can also use Thesis open hook plugin.

Placing the adsense Revenue Sharing code

This can be done using author advertising revenue sharing plugin. Once you have configured the plugin, use this code in your custom_functions.ph file of Thesis theme.

//***************************************************************************
/* Adsense after every post Author advertising */
function add_adsense_media1 () {
?>
<p><?php if (function_exists('kd_template_ad')) { kd_template_ad(1); } ?>
</p>
<?php
}
add_action('thesis_hook_before_post', 'add_adsense_media1'); 

//***************************************************************************

You need to take care of media unit ID.

Adding adsense between the blog post

To add adsense in between the post, I prefer using a plugin name Quick adsense plugin. Benefit of using this plugin is, you can always replace it with any other adnetwork.

Adding adsense above or below the post

To add the adsense above, below or on the sidebar. You can try why to do work adsense plugin.

Though one thing which I have observed instead of using all 3 ad units on your blog, you can always try two ad units and more link units. This will increase your CTR and hence revenue.

Related posts:

  1. Thesis Open Hook Wordpress Plugin : Easily customize Thesis Wordpress Theme
  2. How to add Digg and Tweetmeme Button In Thesis Wordpress Theme
  3. How to add Twitter ID into Thesis wordpress Theme Comment Form
  4. Customizing Thesis Wordpress Theme 404 Error Pages
  5. Why I love Thesis wordpress premium theme
  6. How to Add Clickable header into Thesis Wordpress Theme
  7. Download Thesis 1.6 Wordpress Theme
  8. Thesis Wordpress theme : SEO optimized wordpress theme


{ 9 comments… read them below or add one }

1 Gagan January 25, 2010 at 09:01

Thanks Harsh :)

Reply

2 Basant Singh January 25, 2010 at 11:14

I was not aware of hook plug-in. Thanks for the info.

Reply

3 Themepremium January 25, 2010 at 17:24

Thesis open hook pugin is very useful for editing and customizing Thesis theme.

Reply

4 Mayur January 25, 2010 at 18:06

Thesis Open Hook is the best plugin to easily customize your Thesis theme.

Reply

5 Amal January 25, 2010 at 21:40

Thanks Harsh. I am too using the Quick Adsense plugin. Its much flexible.

Reply

6 sudharsan @ technoskillonline January 26, 2010 at 12:14

I think easy adsense plugins will do all job for you

Reply

7 Relumal January 29, 2010 at 01:33

Hi Harshji ! I read / gone through one of your software section ; they are quite useful and helpful. The following one which has been mentioned therein, I could not get the free download link, except at a site which turned out be filled with virus soonafter landing on my laptop; had to delete instantly. I have avg-antifirus free edition installed on my system. Can you me a better free software download link + aboout the following one :
Crack Downloader plus 2.1 download
Thanking you dear. Awaiting for your help and guidance as well..Good luck and goodwishes..

Reply

8 relumal February 1, 2010 at 20:42

Hi !
Here is another point for me. I use laptop regularly in chruning thenet;
I shall be thankful and request you to advise me the best anti virus FULL VERSION with downloadable link/password.
Awaiting for your guidance dear!…Thank you…

Reply

9 Merlinox March 4, 2010 at 20:36

I create a little plugin to add a post-footer at the end of my post-body with max priority.
In the_content a create a “…” and inside that div I tried to add “kd_template_ad(1)”.

Put doing so plugin works, but advertise appears at the top of the post, and the post-footer appears right after post. Do you know why?

Reply

Leave a Comment

Previous post:

Next post: