How to Add Adsense Code to WordPress without Plugin

How to Add Adsense Code to WordPress without Plugin

Adsense is one of the best ad network for bloggers and already share a guide on How to create an Adsense account. For existing users, add Adsense code in your blog not a task. Want to add adsense code to wordpress then there are my plugins such as Whytodowork AdSense, Quick AdSense that will let you to quickly integrate ads at desire position. 

In this article, I will let you know how to use WordPress widgets to add Adsense code in your WordPress blog. Remember this that will work upon your widgetized part of blog and add ads at any other places such as post title, or more tags, you need to edit the theme file or use any AdSense plugin.

How to Add AdSense Code to WordPress Blog:

This article is for people who want to show their advertisement on sidebar on to your blog.

Move to your login page in your adsense account then create a channel and copy ad unit top 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

Insert AdSense Code

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

Insert AdSense Code

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

With two simple minute of work that can add Google Adsnse to your WordPress blog.


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