• Join ShoutMeLoud on Google+
  • X
    Sign-up for FREE weekly Newsletter.

    Adding Adsense Into Thesis WordPress Theme

    by Harsh Agrawal

    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 icon smile
    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.

    a1e83a3796a794b76836b03f3685ca7cdelicious

    Article by Harsh Agrawal

    Harsh has written 945 articles.

    If you like This post, you can follow ShoutMeLoud on Twitter. Subscribe to ShoutMeLoud feed via RSS or EMAIL to receive instant updates.

    { 13 comments… read them below or add one }

    Gagan

    Thanks Harsh :)

    Reply

    Basant Singh

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

    Reply

    Themepremium

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

    Reply

    Mayur

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

    Reply

    Amal

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

    Reply

    sudharsan @ technoskillonline

    I think easy adsense plugins will do all job for you

    Reply

    Relumal

    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

    relumal

    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

    Merlinox

    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

    Web Talk

    I also am amusing the Quick Adsense plugin. Its much flexible and i dont have to mess up with the code in my theme….thanks

    Reply

    Yousef Zatari

    I have installed the add, you put the ads at the beginning and the end of the article but the problem is that the ads appear extensively in the main dish and I do not want to appear on the page home

    Please help me in this problem
    Sincerely,

    Reply

    Kunal @ TechHogger

    Hi Harsh. In Author advertising what is Media ID. Can you assist me with that?

    Reply

    Ankit Saini

    Is there any way to execute author advertising ” ” php code in quick adsense plugin ads1 Slot…
    Thanks

    Reply

    Leave a Comment

    Previous post:

    Next post:

    `