Adverts in wordpress sidebars

Last Update: June 05, 2012
Hi everyone! I'm posting this question as a blog post as well as in the forum to see if I can get good coverage for my problem. The forum question went like this................

"Hi, looking for a bit of help with the left and right sidebars on my wordpress theme. Whenever I use an advert in these sidebars I can never get them to settle 'dead in the middle' if you know what I mean. The adverts always hang to the left side of the sidebars - very irritating and it makes the overall look of the site a little shabby and unprofessional. Is there any way around this, i am putting in a lot of effort to this new site and i would love to sort the sidebars out if possible".

Any takers? I've had this problem with the other two sites I've built and run using wordpress express but this time it's really bugging me. I am putting a lot of work into this site as it is the first site I'm basing on a niche I personally love. The site is coming on well but the layout of the ads in the left and right sidebars is really letting the overall look down. I was wondering if anyone else has encountered this problem and would like to comment on it. Cheeky I know - leaving a forum post and using a blog to draw attention to it but hey, it could help others who are having the same problem as me. Cheers!
Join the Discussion
Write something…
Recent messages
klrrider Premium
I like to use Max Banner Ads widget and then I re-size any banners or ads that don't fit correctly. Usually 200 - 250 pixels wide.
Apina Premium
It will be a CSS issue - you need to add the code to centre them. I assume that you are using something like Google adsense in a Text Widget in the sidebar? You could try adding <div style="text-align:center; width:XYZpx" > your code </div>. The width XYZ should be changed the to width size of the advert. That should sort it, but if you want, let me know the site and I can check the code to clarify as Im doing this off the top of my head.
Sielke Premium
You could also use just <div align="center"> (I know Dean, not the "right way" but its a bit easier for most people).
CSmith1 Premium
I always just add <center>[my code]</center> around widget code. Always works but know I'm wondering if that's wrong?
Apina Premium
Using align="center" should work as well yes, I just instantly give the css/html and overlook the Wordpress defaults.

I had to google the <center> tag and I found out why I didnt know it, its was deprecated (took out) in html 4, so browsers may not support it for much longer (or they may leave the support in, who knows, especailly with IE).
CSmith1 Premium
Thanks for the info Dean, I'll try avoid using that, or better yet learn some HTML. Whatever I've learnt over the years is just from trial and error.
Actually, I may of picked that up from playing with BCC code some how.
Top