Blog

December 24, 2009

How to display Ads in Single Post of Thesis Theme?


Thesis theme customization is fun, but some people find it difficult and boring. Few days back, one of the Tech Exclusive readers sent me a query about showing advertisements in each post.

If you have similar kind of query, then you can use the following tutorial. There are actually two methods by which we can display advertising in the post of Thesis based blogs. Let’s take a look at them.

Using ‘Custom_functions.php’

Open custom_functions.php file in an editor and paste the following code.

function single_post_ads()
{
if (is_single()) { ?>
// Put your code here.
<?php }
}
add_action('thesis_hook_after_post', 'single_post_ads');

Save the file. You can also put advertise on particular location by modifying the above code.

Using WordPress Plugin

Well, if you don’t know how to edit custom_functions.php, you can use a WordPress plugin called AdMan. Install this plugin on your blog and use given instructions.

Download AdMan WordPress Plugin: Download Link

  • Go to Dashboard of your blog.
  • Open AdMan through ‘Settings’.
  • Check the options given on the page and accordingly put your code in given text field.
  • After completing the above step, click on ‘Update Options’.

You’re done. :) Do you have any issues with Thesis theme? Ask them here.

Note: AdMan plugin works with other themes too.







4 Comments


  1. Muhammad Qasim

    thaks for sharing
    very much needed one


  2. thesis theme is a awesome ..by far the best wordpress theme i have ever used


  3. Hello harshad am using thesis openhook to show the ad below the post., but it is showing below the related posts, how do I make it to show exactly below the post as showing in ur site .



Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>