Add Google AdSense to WordPress without plugins

Posted by 6bytes at 15 January 2012

Category: JavaScript, WordPress

Tags: , , , ,

I wanted to add Google AdSense to my blog just to see how easy it is to do. I’ve googled a bit and found a handful of plugins that claim to do it all for you. I couldn’t decide which one to choose and started thinking from a different angle. It turns out that you don’t need any plugins to install Google AdSense on your site and what’s most important you don’t even need any programming knowledge! The whole process will take you no more than 5 minutes.

  1. Log in to your blog’s admin panel.
  2. Click on Appearance.
  3. Click on Widgets.
  4. Find a Text widget and drag it to the Sidebar (or any other place where you want the AdSesnse to appear).
  5. Enter title. I’ve used “Interesting Links”.
  6. Paste your Google AdSense code into widget’s content area. My code looks like this:
    <script type="text/javascript"><!--
    google_ad_client = "ca-pub-4589490261258499";
    /* allurcode */
    google_ad_slot = "2642741863";
    google_ad_width = 300;
    google_ad_height = 250;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    
  7. Click Save.

That’s it, we’re done! Go to your blog’s homepage and smile :)

Note. Allow a few minutes for Google to create the adds before they actually show up.

  • http://www.lfbz18.com/ 长春代开发票

    “In part, his success comes from his willingness to engage with readers.”