How to display Ads in Single Post of Thesis Theme?

by Harshad on December 24, 2009

The Thesis Theme from Chris Pearson and DIYthemesThesis 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.

Related posts:

  1. How to Remove Comments from Homepage of Thesis Theme?
  2. How to Add Twitter Field in the Comment Section of Thesis Theme?
  3. How to display 125 x 125 Ads in Sidebar of Thesis Theme?
  4. Get TweetMeme Button on Thesis WordPress Theme
  5. How to display Categories in Thesis Nav Bar?

{ 2 comments }

Muhammad Qasim December 25, 2009 at 8:28 am

thaks for sharing
very much needed one

CoreBloggers March 16, 2010 at 2:29 pm

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

Comments on this entry are closed.

blog comments powered by Disqus

Previous post:

Next post: