RSS

Search Engine

Saturday, May 8, 2010

How to Add Google AdSense Between Posts in Wordpress

Step 1 - Enter HTML Code to Identify Where the Google AdSense Ads Should Appear

Add AdSense Between Posts in Wordpress Step 1© Automattic, Inc.

If you're using Wordpress.org and hosting your blog through a third party blog host, you can add Google AdSense ads to your blog and earn money.

To display Google AdSense ads (image ads or text ads) between your posts, log into your Wordpress dashboard, go into your theme editor screen (see the red circle on the left in the image above to find your editor screen), open the index.php file (see the red circle on the right in the image above to find your index.php file), and enter the code in the red circle in the center of the image above, which is:

into your own editor screen directly above the code that says:

.

You can change the number in the code from "1" (meaning the ad will appear beneath the first post on your blog) to any number you want in order to place the ad under the specific post on your blog where you want it to appear.

Warning: It's a good idea to copy the original code and paste it into Notepad or a similar text-editor program. That way, if something goes wrong, you can simply delete all of the code from Wordpress and replace it with your original code.


Step 2 - Enter Your Google AdSense Code

Add AdSense Between Posts in Wordpress Step 2© Automattic, Inc.

Open another browser window and log into your Google AdSense account. Create the ad unit you want to appear between your posts on your blog, and then copy that AdSense code.

Return to your Wordpress dashboard window and paste your code in the same position as it is shown in the red circle in the above image. Note that it appears immediately before the line of HTML Code that includes the --end .entry-- code.

Click the "Update File" button to save your changes.


Step 3 - View Your Blog

Add AdSense Between Posts in Wordpress Step 3© Automattic, Inc.
View your blog to ensure the changes you made display the way you want them to. Note that a live ad might not appear immediately, but the position holder should be there right away. It can take Google a day or so to start displaying contextually relevant ads in a new ad unit.

0 comments:

Post a Comment