How to wrap text around an adsense block in a Wordpress post
- 9 Comment
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;">300x250 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!
No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.