• Join ShoutMeLoud on Google+
  • X
    Sign-up for FREE weekly Newsletter.

    How to add adsense to wordpress without any adsense plugin

    by Harsh Agrawal

    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 appearancewordpresswidgetoption thumb

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

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

    googleadsensewordpresssidebar thumb

    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.

    19fa016f6f31e78ac2229988740dbde1delicious

    Article by Harsh Agrawal

    Harsh has written 945 articles.

    If you like This post, you can follow ShoutMeLoud on Twitter. Subscribe to ShoutMeLoud feed via RSS or EMAIL to receive instant updates.

    { 5 comments… read them below or add one }

    Simon | Teenius

    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

    neo

    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

    waqas

    Really It Worked
    Thanks

    Reply

    Keith

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

    Reply

    Hridoy

    I was looking for this and finally found here. Thanks for your post.

    Reply

    Leave a Comment

    Previous post:

    Next post:

    `