How to wrap text around an adsense block in a Wordpress post
- 0 Comments
If you're new here, you may want to start with my most popular posts. Then, subscribe to my RSS feed to stay updated. Thanks for visiting!
Google Query: how to wrap text around adsense block
Some of the readers of this blog have been asking me how I wrap the text around the adsense block in the beginning of the posts. After some Googling, I found an article to get me started over at ErikVossman.com. The summary is listed below.
With my particular theme, all I did was put the adsense code between two divs. The <div> element turns the text in between the <div> and </div> tags into an object that can be manipulated by styles. The easiest way to explain it would be to show the code.
<div style="float: left;">300×250 Adsense Code Here</div>
That is using the raw adsense code. If you are using Phil Hord’s Adsense Inline Plugin, the code would look similar to the line below:
<div style="float: left;"><!--adsense--></div>
That’s it! I basically told the 300×250 adsense block to float on the left of the post (allowing the post text to wrap around the right side of the block). Happy Blogging!
Technorati Tags: Wordpress, Adsense, HTML
Related posts:
- How to fix the Fatal error: Call to undefined function the_content_limit() in the Wordpress Revolution Theme
- How to create a popular posts page with the wp-postviews plugin
Related posts brought to you by Yet Another Related Posts Plugin.

