Add Google Adsense Ads to WordPress Theme

Posted in Tutorials

Tweet This Share on Facebook Bookmark on Delicious Digg this Submit to Reddit

In this tutorial, we will add Google Adsense (Google ads) to a WordPress theme.

Our site starts off looking like this…

Before Google ads

Before Google ads

1. Let’s add 160×600 Wide Skyscraper ad to the right sidebar.  You need to have a Google Adsense account and then in there generate the Adsense code for this ad.  Copy the adsense code.   In the WordPress dashboard under Appearance -> Widgets, add a Text Widget to the Secondary Widget Area (which is the right sidebar) and paste in the Adsense code as shown.

adsense code in text widget

adsense code in text widget

And you should get the Adsense appearing in the yellow area shown below.

adsense displayed in right sidebar

adsense displayed in right sidebar

Note that this is a responsive theme, so make sure your browser is wide enough.  If too narrow, the sidebar drops below the page as designed.