Placing Google AdSense on your WordPress can be accomplished in a variety of ways. Because of the big blogging rush happening right now many people are building blogs to make money blogging. And the first thing they want to do is to put Google AdSense on their blog. Here is a WordPress guide that gives you different options for integrating Ads into your WordPress blog.
The first and obvious area to place your ads is on the sidebar. This has never been easier with the use of text widgets. To place AdSense on your sidebar read this: Working With WordPress Text Widgets
Then there are plugins to place AdSense within your blog posts. The most popular one, and the one I include when I install WordPress is AdSense Deluxe. Read how to Install And Configure AdSense Deluxe WordPress Plugin.
To add AdSense or other ads directly into your WordPress theme you must place the ad code directly into a few of the themes files depending on where you want the ads to show.
To edit your themes files from within the WordPress dashboard the file permissions must be set to writable on your hosting account, CHMOD them to 666 or 777. Then from the dashboard go to Presentation, Theme Editor. Make sure you have a backup of the file you are editing if you are not comfortable messing around with the code in there.
If you want the ads to show on the top of the main page above the title of the first post you need to place them in the Main Index or index.php file. Look for and open index.php on the right side of the theme editor. Look for this code near the top and place your ads like shown below:
Put Your Ad Code Here <?php if (have_posts()) : //Are there any posts? ?>
You can do the same steps above on the Single Post (single.php), Archives (archive.php) and the Page Template (page.php).
As you start looking at the different files, you can start to see different places to place your ads, or anything for that matter within your blogs theme. For example to place the ad code on the bottom of each post Open the Single Post template (single.php). Place the ad code in the area show just below the post:
<?php if(have_posts()): ?><?php while(have_posts()):the_post(); ?> <div class=”post”> Place Ad Code Here
One note of caution! Please copy, paste and save into a text file on your computer all the text in any file you are attempting to edit before you make any changes!