Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Sidebars & Widgets (http://forum.bytesforall.com/forumdisplay.php?f=14)
-   -   How to override general sidebar CSS style/formatting in sidebar ads? (http://forum.bytesforall.com/showthread.php?t=16195)

wmiedl Dec 8, 2011 03:58 AM

How to override general sidebar CSS style/formatting in sidebar ads?
 
1 Attachment(s)
Hi, I would like to place text-ads in a sidebar text widget - with individual formatting just for this widget. But what happens is, that my text formatting always gets overridden by the default, general sidebar style.

I've tried following formatting:

<style type="text/css">
a.adBody {text-decoration:none;color:black;}
a.adBody:link {text-decoration:none;color:black;}
a.adBody:visited {text-decoration:none;color:black;}
...



but with no success. Why does it work with Google text ads?
Any idea?

(I've attached an example sceenshot, where the same ad shows up correctly in the post and in the wrong format in the widget.)
Thanks in advance,
Wolfgang

juggledad Dec 8, 2011 06:33 AM

different plugins create their widgets differently, with different class names and ID's so it is impossible to code a CSS Selector that will handle all cases.

You need to examine the source of the page to lok at the classes and then construct the CSS you want applied. FireBug in FireFox is a great tool to do this with.


All times are GMT -6. The time now is 02:52 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.