Tagged: 

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #402319

    Hi,

    I would like to know how to change the color of the accordion tabs:

    #1 – When the tab is ACTIVE – I would like the background to be white and the TEXT to be green
    #2 – When the tab is INACTIVE – I would like the background of the TAB header (e.g. Colors Available, Sizes) to be green color.

    #402576

    Hey slui!

    Please try to add this to your Quick CSS:

    .main_color .tabcontainer .active_tab_content, div .main_color .tabcontainer .active_tab {
    background-color: white;
    color: green;
    }
    
    .tab {
    background: green;
    }
    

    Regards,
    Rikard

    • This reply was modified 9 years, 8 months ago by Rikard.
    #402944

    Hi,

    This is code that I use now.

    .main_color .tabcontainer, div .main_color .tabcontainer .tab {
    background-color: #86c62a;
    color: green !important;
    font-size: 16px;
    }

    .main_color .tabcontainer .active_tab_content, div .main_color .tabcontainer .active_tab {
    background-color: white !important;
    color: #86c62a;
    }

    I would like to know how to make the text white for the INACTIVE tab titles.

    sl

    #403224

    Hey!

    Please change color to white instead of green in your first CSS block.

    Regards,
    Rikard

    #405353

    Hi,

    Thanks that still works. However, I need the active tab content to be a white background and not grey.

    Please view the URL to see what I’m discussing.

    sl

    #405361

    Hi!

    Please add following code to Quick CSS as well

    .active_tab_content {
    background-color: white!important;
    }

    Cheers!
    Yigit

    #846078

    Hi there!
    Just wanted to piggyback off this has I have a similar query.
    Is it possible to set colours for each individual tab?
    Ive used this QSS and tried to adjust it, but it adjusts the accordion as a whole, whereas I would like each tab title to be a different color.

    Thanks

    #846619

    Hi,

    Please try the following in Quick CSS under Enfold->General Styling:

    .single_toggle [data-fake-id=#toggle-id-1] {
      background-color:green !important;
    }

    Best regards,
    Rikard

    #848968

    Hi Rikard
    I tried that but it had no effect at all.
    Is this possible to do?

    Thanks
    Tim

    #849812

    Hi,

    Please try this css code instead:

    .main_color .toggler[data-fake-id="#toggle-id-1"] {
        background-color: red;
        color: blue;
    }
    
    .main_color .toggler[data-fake-id="#toggle-id-2"] {
        background-color: blue;
        color: blue;
    }
    
    .main_color .toggler[data-fake-id="#toggle-id-3"] {
        background-color: green;
        color: orange;
    }

    It should change the color of the first, second and third tab.

    Best regards,
    Ismael

    #850899

    Hi Ismael,
    This also had no effect. I thought perhaps I needed to give that specific accordion tab a class, which is pr1tab

    Is there something I am doing wrong?

    .main_color .pr1tab[data-fake-id="#toggle-id-1"] {
       background-color: red;
       color: blue;
    }
    
    .main_color .pr1tab[data-fake-id="#toggle-id-2"] {
       background-color: blue;
       color: blue;
    }
    
    .main_color .pr1tab[data-fake-id="#toggle-id-3"] {
       background-color: green;
       color: orange;
    }
    #850905

    Hi,

    What is “pr1tab”? Please use the “.toggler” selector. If you’re using the custom css class attribute, use this.

    .main_color .pr1tab .toggler[data-fake-id="#toggle-id-3"] {
        background-color: green;
        color: orange;
    }

    That code should change the background and color of the third toggle.

    Best regards,
    Ismael

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.