Display Adsense Ads Within WordPress Posts Without Plugins


There are thousands of adsense plugins for wordpress. I have used many of them and finally decided to manually insert the code to wordpress posts.

Manually putting adsense ads have lot of advantages over using adsense plugins. First of all manual options saves your server space and doesn’t slow down your site. Secondly and the major advantage is that the ad which will appear in the posts will be related to the content of the post so visitors will more likely to click on the ads resulting in high CTR of adsense ads.

Inserting Ads Above The Posts

1. Go to wordpress admin panel and under the “Appearance” section select “Editor”
2. On the right hand side select the “Single Post (single.php)” from the list
3. Look for the code:

<div class="entry">

Use find option in browser. Press Ctrl + F and paste the code to quickly find the code.

4. Place the desired adsense code above the mentioned line. It will be something like this:

 

Your adsense Code Here
<div class="entry">

Inserting Ads Below The Posts

Search for the code:

<?php comments_template(); ?>

and place the adsense code above the mentioned line which will make it look something like this:

 

Your adsense code here
<?php comments_template(); ?>
About Nasif

I am a hobby blogger and I love Wordpress. Herbal tea addict. Loves being lazy and zZzZ...