• X

    How to Add Adsense Code to WordPress without Plugin

    By in WordPress

    Bluehost hosting

    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 in your 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>
    <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 How to Add Adsense Code to WordPress without Plugin

    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 How to Add Adsense Code to WordPress without Plugin

    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.

    Get Free Blogging updates in your Email

    Find more Topics based on Keywords

    Article by

    Harsh has written 1263 articles.

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

    { 2 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

    Keith

    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:

    `