Tips and Tricks

October 16, 2009
 

How to display 125 x 125 Ads in Sidebar of Thesis Theme?

Thesis WordPress theme is popularly known for its customization ability. It allows bloggers to create versatile designs from its simple design. This feature of Thesis theme is quite efficient as blogger can use single theme over different blogs by just tweaking it here and there.

Thesis customization is not as easy as it sounds. I have written tutorials on how to add twitter field and how to add favicon in Thesis theme, which requires technical knowledge of WordPress. Today, I am sharing another tutorial to include 125 x 125 advertisement blocks in sidebar of Thesis theme.

In order to put ad blocks of this size, you will have to edit custom_functions.php and custom.css files of your theme. Thesis theme doesn’t offer flexible advertising options. We can only display certain types of ads on blogs, but the ultimate solution for this problem is customization.

125 x 125 Ad Blocks in Sidebar of Thesis Theme

Let’s start with customization of Thesis theme.

  • Open Custom.css file and add following code in it.
.custom .ads { text-align: center; } .custom .ads img { margin: 1px; }
  • Save the file and open Custom_functions.php
  • Copy following code and paste it in the file.
function custom_ADS() { ?>
<img src=”Add_Image_Source” />
  • Save the file. That’s it!

If you want to show these ads in other sidebars then you can change the sidebar from thesis hook.

Advertisement

125 x 125 ads