How to Add Adsense Code to WordPress without Plugin

IN Make Money online

AdSense is the best ad network for bloggers, and I have already shared a guide on How to create an AdSense account. For existing users, adding AdSense code in a blog is not a task, but if I recall my earlier days, I was not sure how to use AdSense dashboard, and how to add it on my blog. When it comes to WordPress, there are many plugins like Whytodowork AdSense, Quick AdSense, which will let you quickly integrate ads at your desire position. To be honest, I find plugins are easier to do things on WordPress over manual Work. Until, unless you know PHP, and understand WordPress theme structure.

In this article, I will be sharing how y0u can use WordPress widgets to add AdSense code in your WordPress blog. Do remember, this will work on your widgetized part of blog, and to add Ads at other places like after post title, or more tags, you need to edit the theme file or use an AdSense plugin.

How to Add AdSense Code to WordPress Blog:

This article is for those who wants to show their advertisement on the sidebar of your blog.

First of all login to your adsense account and create a channel and copy the ad ad unit you want to show.

Your code will be something like this

<script type=”text/javascript”><!–
google_ad_client = “pub-xxxxxxxxxxxxxxxx”;
/* 300×250, created 1/26/07 */
google_ad_slot = “2012343546”;
google_ad_width = 300;
google_ad_height = 250;
<script type=”text/javascript”

Once you have your adsense code,

Login to your wordpress blog and click on widget under appearance

Select the sidebar you want to use (depends on your wordpress theme)

Select Text widget and edit it and paste the Adsense code.

With simple two minute of work you can add Google Adsense to your WordPress blog.

Do read the previous post on How not to avoid Google AdSense terms and conditions

Alternatively if you want to advertisement above or below your post, you need to edit your single.php file in theme editor.

You should also check out shoutmeloud previous post on How you can use images to drive traffic and how you can use Flickr to drive traffic to your blog.

Subscribe on Youtube

Click to activate Offer & visit site Discount added automatically
No related entires

Subscribe to SML Newsletter

Receive Blogging Tips & Strategies

Get WordPress Guide eBook for free in the 2nd newsletter

100% privacy. we will never spam you

  • Author Bio

  • Latest Post

Blog post by Harsh Agrawal

Harsh has written 1050 articles.

Follow ShoutMeLoud on Twitter. Subscribe to ShoutMeLoud feed via RSS or EMAIL to receive instant updates.

Send Us Inquiry


  1. Simon | Teenius says

    Awesome tutorial :D

    I’ve been using WP for quite a long time now but have never realised the text widget option. Damn, that’s a huge help, makes my life a lot easier :D lol Thanks!

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>