Coloristic

  • Ania212

    #5022

    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

    Syahir Hakim

    #30340

    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.

    Ania212

    #30341

    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

    Syahir Hakim

    #30342

    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 */
    }

    Ania212

    #30343

    Thank you very much for help

    Ania212

    #30344

    Sorry for bothering you again. I changed almost everythin but I can’t change the color of links on sidebar, whatever i do they are still blue. How can I change their color?

    Ania212

    #30345

    Sorry to bother you again. I changed almost everythin but I can’t change the color of links on sidebar, whatever i do they are still blue. How can I change their color?

    Prasanna SP

    #30346

    Did you try

    .category-liceum .sidebar a {
    color: #FF0000 !important;
    }

    or

    .category-liceum .sidebar ul li a {
    color: #FF0000 !important;
    }

    ?

    Ania212

    #30347

    I tried it now and it works perfectly. Thank you very much for help

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.