How to add adsense to wordpress without any adsense plugin

by Harsh Agrawal on April 16, 2009

in Wordpress

           
   

I realize recently that people who migrate from blogspot to wordpress are facing lots of problem adding Google adsense code to their wordpress blog.

Adding adsense to wordpress is very easy. Even if you are not familiar with wordpress, you can add it in minutes.

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>
<script type=”text/javascript”
src=”http://pagead2.googlesyndication.com/pagead/show_ads.js”>
</script>

Once you have your adsense code,

Login to your wordpress blog and click on widget under appearancewordpress widget option

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

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

Google adsense Wordpress sidebar

You can also add heading to your text widget like My sponsors Sites we like.

With simple two minute of work you can add Google adsense to your wordpress blog.

Do read the previous post on 10 simple mistakes 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.

Enter your email address:

Related posts:

  1. Add Adsense Between Post : Quick Adsense Wordpress plugin
  2. Wordpress adsense plugin Whytodowork , insert adsense code anywhere in wordpress blog post
  3. Free Adsense Optimized Wordpress Theme : Adsense ready V1
  4. How to add Digg and Tweetmeme Button In Thesis Wordpress Theme
  5. Add PHP code to your wordpress sidebar using Samsarin PHP Widget
  6. How to create Google custom search code using adsense search unit
  7. Global translator WP plugin Google adsense TOS violation and solution


{ 5 comments… read them below or add one }

1 Simon | Teenius April 16, 2009 at 20:53

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!

Reply

2 ziyad April 28, 2009 at 17:28

Very useful. Thanks a million.

Reply

3 neo July 15, 2009 at 09:02

I think I have read that putting something like My sponsors or Sites we like is against their TOS
.-= neo ´s last blog ..Free Air Guitars! =-.

Reply

4 waqas November 24, 2009 at 18:49

Really It Worked
Thanks

Reply

5 Keith December 11, 2009 at 21:46

FINALLY! Now my ads finally display like I want them to. Thank you so much for making this post!

Reply

Leave a Comment

Previous post:

Next post: