
Email This Post
How to Wrap Text around Google Adsense in Wordpress in 5 Easy Steps
Wordpress, Blogging Tips June 25th, 2007
Visited 1415 times, 2 so far todayThe following example will show you how to wrap text around google adsense in your wordpress posts. Â
- Login to your WordPress administration panel
- Select Presentation ->Theme Editor from the navigation menu

- On the Theme Editor page, you will see a list of “theme files” to the right of the page. Select the “Single Post” (single.php).
- Find the following line
<?php the_time(’F jS, Y’) ?> - Below it add the following line
<div style=”display:block;float:right;margin: 5px 5px 5px 5px;”>
  insert google adsense code here
</div>
Comments:-Depending on where you want your ads to disply on the post, you can edit the “float:right” attribute to “float:left” or “float:center” as well. This will position your ads in those positions. The 5px 5px 5px 5px you see in the code are the margins that add a space around the text wrap on the top, bottom, left, and right sides. If you want to you can remove these spaces.
That’s it your done!
You can see a demo of this on any of my posts on this site.

