How to Add Google Adsense to WordPress Posts without Plugin

Rate this post

Google Adsense without Plugin

When Google Adsense code can be implemented easily without a Plugin then why to choose adsense Plugin for your WordPress blog posts? You can implement Adsense code in your blog post in just few minutes without any Plugin.

Those who don’t know how to create a Plugin for their website and also don’t want to use any adsense plugin can use this trick to implement Adsense code to WordPress blog post.

In this article, we will show you trick to add Google Adsense code in WordPress post-single.php file. You may find this file with different names in your theme like:





How to add Google Adsense code in post-single.php file?


First login to your Google Adsense account and create a 300 x 250 Adsense code.


Now login to your WordPress Administration panel.


Click on Appearance section > Editor option.


Select Single Post (post-single.php) under themes template section.


Now find <div class=”entry”> or <div class=”entry clearfix”> or <div class=” entrytext “> in post-single.php file.


Paste your Google Adsense code just below the <div class=”entry”> code.


Click on Update File button to update the file.


You can put you Adsense code between <div></div> tags. This will allow your ads to position where you want it. Below example will show ads on right side of your post.

Right side example:

<div style="float:right; padding-top:10px; padding-right:5px;">
<script async src="//"></script>
<!-- 300 x 250 Side Bar Rectangle -->
(adsbygoogle = window.adsbygoogle || []).push({});

If you want to show ads on left side of your post, change float:right  to float:left. You can also change padding-top and padding-right to 0 or remove both the padding, if you don’t want to set.

Get Free Blogging Tips & Technology updates in your Email !!!

Subscribe via RSS feed

The following two tabs change content below.
Anil Kumar
IT Blogger Tips focus on Blogging Tips, SEO Tips, Social Media, SQL Tips, PL/SQL Tips, Oracle DBA, Linux/Unix, Latest Technology, How Tos and Technical Solutions. You can find us on Facebook | Twitter |
Find on Google+

  • Ataur Rahman

    I have a Google adsense account but not enough click. Recently approved. Very low income. Thank you so much for One of the best articles.

    • keep posted good and informative articles, you will certainly get good income.

Siteground SALE
60% OFF SiteGround WordPress Hosting – $3.95/month (Exclusive Offer !!!)