Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

Ignore style settings for some widget areas

Build custom WP THEMES, without
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
Old Apr 20, 2011, 01:09 PM
Webmason's Avatar
69 posts · Feb 2009
Minneapolis, MN USA

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.

Old Apr 20, 2011, 01:27 PM
juggledad's Avatar
23,242 posts · Mar 2009
OSX 10.10.1 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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.
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
Old Apr 20, 2011, 01:54 PM
Webmason's Avatar
69 posts · Feb 2009
Minneapolis, MN USA
Excellent - Thank you!


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change widget areas order on widget page JFG Sidebars & Widgets 0 Apr 19, 2010 02:07 PM
Multiple new widget areas? horsemansarts Sidebars & Widgets 2 Nov 12, 2009 08:18 AM
New widget areas working at all? paulae Sidebars & Widgets 3 Sep 21, 2009 03:49 PM
Widget areas 1 to 4 Ddabrai Sidebars & Widgets 2 Aug 15, 2009 02:48 AM

All times are GMT -6. The time now is 03:51 PM.

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