Skip to content
 

How To Fix Your Text Widget Ads

If you were paying attention to my blog today (which you most likely weren’t), you would have noticed that I was having issues trying to put ad space on my sidebar. Just last week I decided that I wanted to switch back to using Adsense. Boy, was that ever a mistake. I was quickly reminded why I had started using ProjectWonderful in the first place. However I had a problem, my ads kept getting pushed off to the right of each sidebar. Nothing seemed to work.

Finally today I figured out a quick and dirty solution.

I’m not much for a coder, so I didn’t feel like examining every single line of code. Instead I started playing with what options I could easily change, such as themes. It seems that my 3cwptp theme is the problem. Or more importantly, some coding of css that exists within it.
So without further adu, here is a fix to having your ads not float off of your sidebar while using the text widget.

</div></div> -insert ad code here- <div> <div>

All this is doing is breaking out of the css and then giving the built in close tags something to close so you can put in widgets after this ad.

-Edit- After going home and looking at my blog again, I realized that the smaller screen resolution again breaks the ads.

To fix this I added

<div id="ggg" style="width: 150px; float:left">
-code-
</div>

This once again fixes my ads.  It is possible that this would have done it in the first place but I like the fact that the earlier fix stops the original css from acting upon the code.


related post

Leave a Reply