How to add Adsense code to the Left of Post

Adsense 07 March 20102 Comments

How to add Adsense code to the Left of Post

Adding Adsense code to the left or right or post typically increases Adsense CTR. Some adsense monetized themes provide this functionality within their themes. But some themes don’t provide it. So we are going to do it – a simple hack of your theme.

Add Adsense to left of post
1.Login to your WordPress Dashboard.
2.Go to Appearance –> Editor and open Single Post (single.php).
3.Search for

<?php the_content(__(‘Continue Reading &raquo;’)); ?>

Or you might have,

<?php the_content(__(‘Read the rest of entry &raquo;’)); ?>

4.Before it insert a div in such way

<div style=”float:left;”>your Adsense code goes here</div>

If you want your Adsense code to be shown to the right of post use float:right as

<div style=”float:right;”>your Adsense code goes here</div>

See below

<div style=”float:left;”>
<script type=”text/javascript”>
<!–google_ad_client = “pub-xxxxxxxxxxxx”;
google_ad_slot = “xxxxxxx”;
google_ad_width = 336;
google_ad_height = 280;
//–>
</script>
<script src=”http://pagead2.googlesyndication.com/pagead/show_ads.js”></script>
</div>
<?php the_content(__(‘Continue Reading &raquo;’)); ?>

That’s it .
NOTE: Replace your Adsense code with this code  :-)

Related Posts with Thumbnails

Bookmark It!!!

Buzz It   Twitt It   StumbleUpon It   Facebook It   Digg It   Delicious It   Reditt It   Reditt It  

Author

Atul

Atul - who has written 100 posts on Tech Of Web.

Atul is a professional blogger and techie who writes at TechOfWeb.

Subscribe to TechOfWeb feed via RSS || EMAIL || Twitter || Facebook to get instant latest tech updates.

Contact the author

Your Comments

2 Comments so far

  1. We can use easy adsense plugins for this …

  2. NavaPavan says:

    Thanks for sharing the tut


Share your view

Post a comment

  •  
  • Hostgator Web Hosting Elegant Themes Thesis Theme Woo Premium Themes

    © 2010 Tech Of Web. Powered by Wordpress.

    Wordpress themes by Woo Themes