How To Insert Adsense Into Wordpress Post
Have you ever wanted to insert your adsense code right into your wordpress post but wasn’t sure how to do it? You’re in luck! I’m going to show you exactly how to do this. This won’t take but a second, it’s a really quick fix.
Log in to your wordpress admin.
Navigate to your theme editor. How to get there depends on the version of wordpress you are using. If you are currently up to date, it will be “Design >> Theme Editor”
Once there, click on “Single Post (single.php) on the right hand column of the editor page.
Copy and paste
<table border=”0″ width=”302″ id=”table1″ cellspacing=”3″ cellpadding=”3″ height=”252″ align=”left”>
<tr>
<td>
YOUR ADSENSE CODE GOES HERE
</td>
</tr>
</table>
right above
<?php the_content(’Read the rest of this entry »’); ?>
Your themes code may vary but it will be directly above the “the_content” call, you may have category exclusions or different text for reading the rest of the post but regardless, that’s where it goes.
Now your posts will look like…
The code above is set to use the 300×250 square adsense ad. You can use a different size ad by changing the dimensions on the table. Try and make your table bigger each direction by a couple of pixels to allow for a little spacing and so that there are no browser display problems.
You’re not limited to adsense. Post the code for any banner or text there that you like.
If you have any trouble, let me know below and I’ll try to help out.
There ya go!
Take Care,
Gail


















I’ve tried this code on a theme or two where it didn’t work. The fix for that is a little more complicated because it generally has something to do with your CSS. If you are comfortable with css, you can look in there for the problem (copy and paste entire css file into a text file first in case you have problems, you can just restore to default). I’ll post complete details in a different post for solving this in css.