Sometimes as a website developer by wordpress you need to add adsense add to top. Here I'll show you how to add adsense banner on right top in wordpress theses theme
.
*First open custom folder and open custom_functions.php file.
*Copy these code-
*Then copy following css code and paste it in to custom.css file.
*** Keep in mind,If your header banner ad appears messy,try adjusting the Top pixels
Now You have successfully added adsense banner ad to the header of thesis wordpress theme
.
*First open custom folder and open custom_functions.php file.
*Copy these code-
function header_banner() { ?> <div id="header_banner"> [INSERT ADD Google Adsense Ads CODE HERE to place in thesis theme] </div> <?php } add_action('thesis_hook_header', 'header_banner');
*Paste these code in to custom_functions.php file.*Then copy following css code and paste it in to custom.css file.
/*Adding HEADER ADSENSE */
.custom #header_banner { float:right; position:absolute; width:468px; height:60px; top:100px;
margin-left: 45.5em; }
.custom #header_banner { float:right; position:absolute; width:468px; height:60px; top:100px;
margin-left: 45.5em; }
*** Keep in mind,If your header banner ad appears messy,try adjusting the Top pixels
Now You have successfully added adsense banner ad to the header of thesis wordpress theme