Last week I was wondering to spot a ads on my blog at Thesis header. I was searching how to add 468 * 60 size adsense banner ads to header and got couple of tutorials for it.
Today I want to share with you this tutorial for thesis how to add any (468*60 or 728*90) ads to Thesis header. This is pretty simple and I like this method.
How To Add Adsense Ads to Thesis Header
Step 1: Go to your dashboard and click to Custom File Editor
Step 2: Now select custom_functions.php
Step 3: Copy this code and Paste it
function header_ad() { ?>
<div id="header_ad">
<p>
[PLACE GOOGLE ADSENSE AD CODE HERE - 468x60 unit]
</p>
</div>
<?php }
add_action('thesis_hook_header', 'header_ad');
Now save it and go back to custom.css
Step 4: Copy it and paste to custom.css
/* HEADER ADSENSE */
.custom #header_ad { float:right; position:absolute; width:468px; height:60px; top:100px;
margin-left: 45.5em; }
Make sure you changes css code when you put 728*90 size ads and necessary other codes to fit the adsense header.


