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)
-   -   Ignore style settings for some widget areas (http://forum.bytesforall.com/showthread.php?t=13860)

Webmason Apr 20, 2011 02:09 PM

Ignore style settings for some widget areas
 
Hello,

Sorry if this has been asked/answered, I couldn't find it by searching...

Is there a simple way to set certain widget areas to ignore widget styling choices?

I want the styling set for the sidebar, but not for added areas on the header, footer and body.

Thanks!
Tom

juggledad Apr 20, 2011 02:27 PM

CSS is 'cascading' so any HTML element that matches the CSS Selection will have the rules applied. If you want all the 'widgets' to have a background of 'red' you would use the 'widget' class
HTML Code:

.widget {background: #red;}
but if you wanted the widgets in teh footer to have a background of 'blue' you would have to have a more specific CSS Selector like this
HTML Code:

#footer .widget {background: blue;}
to get these CLASS's and ID's, you need to look at the generated source of the page.

Webmason Apr 20, 2011 02:54 PM

Excellent - Thank you!


All times are GMT -6. The time now is 05:10 AM.

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