Dec 17 2007

How to wrap text around an adsense block in a Wordpress post

Welcome back!

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!

Technorati Tags: , ,

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

TAGS:

4 Comments on this post

Trackbacks

  1. james said:

    And the code is supposed to be placed where in the file? I need more detail than that?
    thanks

    January 2nd, 2010 at 12:47 am
  2. hstagner said:

    Hello,

    Are you asking if you need more detail? If so, then only you can answer that.

    Anyway, you put the code in your blog post where you want the adsense block to appear.

    January 2nd, 2010 at 9:06 am
  3. bobin said:

    thanks, was searching for this

    May 21st, 2010 at 12:00 pm
  4. Jenn said:

    Wauuuvvv.. Thanks.

    June 17th, 2010 at 12:08 pm

LEAVE A COMMENT

Subscribe Form

Subscribe to Blog

Sponsors

Recent Readers

JOIN MY COMMUNITY!
                  Computers Blogs - Blog Top Sites