How To Put Adsense into your WordPress layout
January 13th, 2007 by Justin Maier
Once you’ve signed up, you’re ready to start putting ads into your layout. Here is how to put them in a variety of successful places. These directions may change depending on your layout, however most layouts are fairly similar. If you ever need help with this, feel free to email me at Zipp425@gmail.com
In the Header
- Connect to your webspace with your FTP program. (I will be using FlashFXP)
- Navigate to the location of your theme
- Right click on header.php
- Click Edit
- Find <div class=”header”> or <div id=”header”>
- Right after <div class=”header”> or <div id=”header”> type <div class=”headerAds”>
- Paste in the Adsense Code.
- After you Adsense Code, type </div>
- Save the file and in the FTP program press OK to upload the file.
- In your FTP program, right click on style.css
- Click Edit
- In the clear space right after */ type div.headerAds {
- On the next line type float:right;margin-right:5px;margin-top:5px;.
- Save the file and in the FTP program press OK to upload the file.
- View your website to see if it looks ok. If it doesnt look right repeat step 10-14 and experiment with what you typed in step 13.
At the top of an Article
- Connect to your webspace with your FTP program. (I will be using FlashFXP)
- Navigate to the location of your theme
- Right click on index.php
- Click Edit
- Find <h1><a href=”<?php the_permalink() ?>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></a></h1> and right after that type <div class=”titleAds”>
- Paste in the Adsense Code.
- After you Adsense Code, type </div>
- Save the file and in the FTP program press OK to upload the file.
- In your FTP program, right click on style.css
- Click Edit
- In the clear space right after */ type div.titleAds {
- On the next line type text-align:center;padding-top:5px;padding-bottom:10px;.
- Save the file and in the FTP program press OK to upload the file.
- View your website to see if it looks ok. If it doesnt look right repeat step 10-14 and experiment with what you typed in step 13.
On the Sidebar
- Connect to your webspace with your FTP program. (I will be using FlashFXP)
- Navigate to the location of your theme
- Right click on sidebar.php
- Click Edit
- Find what looks like the end of your sidebar content (usually right before the last </div>).
- Right after that type <div class=”sidebarAds”>
- Paste in the Adsense Code.
- After you Adsense Code, type </div>
- Save the file and in the FTP program press OK to upload the file.
- In your FTP program, right click on style.css
- Click Edit
- In the clear space right after */ type div.sidebarAds {
- On the next line type text-align:center;padding-top:10px;padding-bottom:5px;.
- Save the file and in the FTP program press OK to upload the file.
- View your website to see if it looks ok. If it doesnt look right repeat step 10-14 and experiment with what you typed in step 13.
If you would like to have direction on adding Ads to a different location on the page, leave a comment, or email me at Zipp425@gmail.com.

January 13th, 2007 at 4:57 pm
[…] Once you site has been accepted your ready to put Adsense into your website. […]