Coloristic
-
I have a question about coloristic. Is it possible to change a color of sidebar widget’s on every single page? What i mean is that I have a site about three schools and i want to change the coloristic of each school. For example when I open a site that belongs to secondary school then the whole coloristic together with sidebar widget’s becomes green but when i change a school for another then it becomes blue or purple (it depends on the school). Is it possible in any way? Maybe I can edit php file to change it?
Admin
It’s possible, but not via the theme’s colour options. You would need to write some CSS for each of the school. Post a link to your site so that we can take a look.
Quote:Maybe I can edit php file to change it?Never, ever, do this. If you edit any of the theme’s files, those edits will be lost the next time you update the theme.
My website Link : edu.wci.pl. It’s a webiste in polish language, in menu there is “gimnazjum”, “liceum”, “studium”. These are those schools and I would like each one of them to have different color on sidebars, and the titles from archive
Admin
Each of those category pages has a specific class assigned to the body element, so you can use those to target the widgets in each category. Examples:
.category-gimnazjum .sidebar h3 {
/* Put background properties in here */
}
.category-liceum .sidebar h3 {
/* Put background properties in here */
}
.category-studium .sidebar h3 {
/* Put background properties in here */
}Did you try
.category-liceum .sidebar a {
color: #FF0000 !important;
}or
.category-liceum .sidebar ul li a {
color: #FF0000 !important;
}?
Viewing 9 posts - 1 through 9 (of 9 total)
- You must be logged in to reply to this topic.
