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 »’)); ?>

Or you might have,

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

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 »’)); ?>

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

Bookmark It!!!

                

2 Responses to “How to add Adsense code to the Left of Post”

  1. We can use easy adsense plugins for this …

  2. Thanks for sharing the tut

Leave a Reply