How to Add an AdSense Code in WordPress Without a Plugin

Spread the love

How to Add an AdSense Code in WordPress Without a Plugin

AdSense is the best advertising network for bloggers, and I’ve already shared a guide on how to create an AdSense account.

For existing users, it’s no use to add an AdSense code to the blog, but if I remember my early days, I was not sure how to use the AdSense Dashboard and how to add it to my blog.

Add an AdSense Code in WordPress
Add an AdSense Code in WordPress

When it comes to WordPress, there are many plugins such as Votodovark Adsense, Quick Adsense, which allow you to quickly integrate ads on your desired status. To be honest, I think it is easy to do stuff on WordPress on a manual work. Unless you know PHP, and understand the WordPress theme structure.

In this article, I will share how y0u can use the WordPress widgets to add the AdSense code to your WordPress blog. Remember, this will work on your widgeted portion of the blog, and in order to add ads to other locations after the post title, or more tags, you need to edit the theme file or use the AdSense plugin.

How to add Adsense to your blog:

This article is for those who want to show their ad on the sidebar of your blog.

First log in to your AdSense account and create a channel and copy the ad unit that you want to show.

Your code will be something like that

<Script type = “text / javascript”> <! –

google_ad_client = “pub-xxxxxxxxxxxxxxxx”;

/ * 300 × 250, 1/26/07 * Created /

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 your AdSense code is done,

Log on to your WordPress blog and click on the widget below the presence

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

Select the text widget and edit it and paste the AdSense code.

With just two minutes of work you can add Google Adsense to your WordPress blog.

Read the previous post on how to avoid Google AdSense Terms and Conditions

Alternatively, if you want to advertise above or below your post, you will find your single .fp in the theme editor. File is required to edit.

You should also check the previous post on the shortlisting on how you can use images to run traffic and how you can use Flickr to run traffic on your blog.

Leave a Reply