0

How to put a banner ad in the header? (Thesis Tutorial)

Those who use wordpress themes have always had an urge to know how to add a banner in the header. Adding the advertisement makes the blog more useful,thus allowing the viewers to know more information. Since most of us find it difficult in coding the tradional way, here’s another way of coding.

I have shown you what I put in my custom CSS file and custom functions file. My code has been left so that it is easy to see where to delete and insert your own code. Hope this helps! :D

Custom Function:

function my_header_ad() { ?>
<div id="leaderboard_ad"><a href=""><img src="image url" alt="" /></a></div>
<?php }
add_action('thesis_hook_header', 'my_header_ad');

Custom CSS 
                                                                                                                                                  
.custom #leaderboard_ad { float: right; position: absolute; width: 468px; height: 60px; top: 15px; left: 502px; }                                                         

Now make sure you change the CSS so that it fits in your header. For top, the higher the pixel value the lower it will be. For left, the higher the pixel value the farther to the right it will be. You will have to play with it so it fits your header the way you like it.

ThisThesis Tutorial will help you get a banner ad in your header. As always, if you have any questions to ask please comment, I will writing to you shortly.

Related posts:

  1. Changing the WordPress Log-in Page
Filed in: How To, Thesis Tags: , , , , ,

Recent Posts

Bookmark and Promote!

Leave a Reply

Submit Comment

Copyright © 2011 Techwizz.net.
powered by iTechnoLab.
More in How To, Thesis (28 of 36 articles)