Overland Park SEO | Kansas City SEO

Kansas City SEOHow to Wrap Google Adsense Ads in Wordpress

Categories Advertisements
How to Wrap Google Adsense Ads in WordPress Published on Saturday, October 29, 2011 by

How to Wrap Google Adsense Ads in WordPress


How to wrap text around Google Adsense ads (also works for Chitika):

1. First off you need to get into your text editor you use for html coding. You can use the coding section of Dreamweaver or FrontPage, or use Notepad. Then you have to find where in your content you want the text to wrap around the ads. Anywhere will work for your first try, you can then copy and place the text where you please. Or, you can do this directly inside the WordPress Admin. But before you do, make sure you backup your WordPress.

2. Once you found the spot you like you need to add the following div tag around your adsense or chitika code.

all the google adsense code (or chitika)

That’s it!

Explanation of the div tag
The float:right attribute can be changed to float:left or float:center as well and it will position the ads in those positions while allowing the text to wrap around the ads that directly proceeds and follows it. I also add the margin code to add a margin of white space around the text wrap on the top, bottom, left, and right. You can add or remove space as you wish. The display:block element basically just describes whether you want to break the line where you are inserting the ad or let the browser find where to break the line and wrap the proceeding text. If you want the browser to do it just choose block:inline.

You can place the code directly into each post or page by selecting HTML in the WYSIWYG editor. Or, if you want the ad to appear at the same place each time, and to SAVE you time, you can place the code directly into your theme. Just visit the theme editor and add it where you want to inside the page that says single_post.php (page could be named differently).

If you need help with setting this up, just drop me a line, and I can set it up for you.



About us and this blog

Kimberly Kimbrough LLC is a full service agency that delivers compelling digital marketing solution. Our winning solutions and experience helps to deliver great results across several key areas.

Request a free quote

We offers professional SEO services that help websites increase organic search drastically and compete for 1st page rankings of highly competitive keywords.


sidebar widgets

YouTube Gamers Should Be Apart Of Your Digital Strategy

Many business owners may not be aware of unique ways to think…
Continue reading

Top Ten SEO Tips For 2015

We live in a world where information is a click away. But…
Continue reading

Trends in SEO Marketing : Part One

The current trends in marketing require companies to commit to innovation in…
Continue reading

Custom Meta Data

META DATA It is important to add Meta Data to your custom…
Continue reading

Google + Basic Strategies

Use Google+Local –Google+ should be used to generate reviews/testimonials.  Google reviews drive…
Continue reading

Is Search Engine Submission Necessary?

The simple answer is no - search engine submission isn’t necessary. The majority of…
Continue reading

Can Any Inbound Linking Hurt My Ranking?

The answer is simple - inbound linking cannot hurt your search ranking. How…
Continue reading

The Importance of Anchor Text in Back-links

The importance of anchor text with respect to a linking strategy cannot be overstated.…
Continue reading

Leave a Comment

No comments currently exist for this post.
Leave your comment:
You must be logged in to post a comment.