Social Networks

In my site I have used google adsense link unit. Google Adsense is Leading Ads publisher network available on Web.You can earn thousand of Dollars form Adsense .The only thing which you need do is place your ads on right place.

In this article we will see that how to add adsense link unit below header image in thesis theme.

google_link_unit

To place the Google adsense link unit below the header image, add new unit in your account 728*15, change the background and other styles as per your website. Get generated code which will be like below –

 

just copy code below and paste under your custom_functions.php.Don’t forget to take backup of yourcustom_functions.php before modifying.

google_link_unit-code-image

function add_googe_menu(){
?>
<div class="google_add">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-00000000000000";
/* Add Header */
google_ad_slot = "000000000";
google_ad_width = 728;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<?php
}
add_action('thesis_hook_after_header', 'add_googe_menu');

Click on save button. Now copy below css code and paste in to your Custom.css

 /**** Google Add ****/ 
/**** Google Add ****/
.google_add
{
	width:100%;
	float:left;
        font-size:18px;
	text-align:left;
	background:#CC0000 none repeat scroll 0 0;
        font-weight:bold;
	text-decoration:none;
        height: 25px;
        padding-top: 5px;
}

Click on save button

You can change background color, text color as per your requirement.

 

 

Thanks to visit Tech Blog. I will very happy to reply your any questions. Please comment

Thesis Style Box in Action
How to add Breadcrumbs in Thesis Theme for SEO Friendly Navigation
Pagination in Thesis theme WordPress

Leave a Reply

Your email address will not be published. Required fields are marked *

Allowed Tags:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>