-
AuthorPosts
-
May 22, 2017 at 12:09 pm #797574
Hey guys,
I would like to make one accordion that has 7 expandable boxes, to each have different colors. And I don’t want it to interfere with other accordions in the same post.
How is the best way to do this?
Thanks.
May 22, 2017 at 1:05 pm #797610Hey FlatText,
Try to enabling custom css classes http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/ then in the class name add my-accordion
Then in Quick CSS (located in Enfold > General Styling), add this css code:
.my-accordion > .av_toggle_section:nth-child(1) .toggler { background-color: blue; } .my-accordion > .av_toggle_section:nth-child(1) .toggle_content { background: blue; } .my-accordion > .av_toggle_section:nth-child(2) .toggler { background-color: green; } .my-accordion > .av_toggle_section:nth-child(2) .toggle_content { background: green; } .my-accordion > .av_toggle_section:nth-child(3) .toggler { background-color: yellow; } .my-accordion > .av_toggle_section:nth-child(3) .toggle_content { background: yellow; } .my-accordion > .av_toggle_section:nth-child(4) .toggler { background-color: red; } .my-accordion > .av_toggle_section:nth-child(4) .toggle_content { background: red; } .my-accordion > .av_toggle_section:nth-child(5) .toggler { background-color: gray; } .my-accordion > .av_toggle_section:nth-child(5) .toggle_content { background: gray; } .my-accordion > .av_toggle_section:nth-child(6) .toggler { background-color: orange; } .my-accordion > .av_toggle_section:nth-child(6) .toggle_content { background: orange; } .my-accordion > .av_toggle_section:nth-child(7) .toggler { background-color: purple; } .my-accordion > .av_toggle_section:nth-child(7) .toggle_content { background: purple; }
toggler is for the title and toggle_content for the content. Just adjust the background colors as you see fit. Hope this helps :)
Best regards,
NikkoMay 22, 2017 at 1:18 pm #797617Thank you Nikko.
Perfect
May 22, 2017 at 1:27 pm #797631Hi,
We’re glad that Nikko was able to help you! If you have any other questions or issues, feel free to post them here on the forum.
For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
We’d also appreciate it if you can take a moment to review our theme if you haven’t already. https://themeforest.net/downloads
Thank you for using Enfold!
Cheers!
SarahMay 26, 2017 at 12:44 pm #800110Hi Nikko,
Can you point me to the correct CSS so I can do the same on the Tab elements? Or should I start a new thread?
Thank you
May 26, 2017 at 8:00 pm #800340Hi,
Are you referring to the first tab shown here: http://kriesi.at/themes/enfold-2017/elements/tabs/ ?
Best regards,
NikkoMay 27, 2017 at 4:07 pm #800545Hi Nikko,
Yes, but not just the first tab. I want to be able to change the individual tab colors. Just like you showed me with the accordion earlier in the thread.
May 29, 2017 at 8:21 am #800964Hi,
Like Nikko said, please give a class name to your Tabs Element, then You can use this code as basis.
.my-tabs .tab:nth-child(1) { background-color: blue !important; } .my-tabs #tab-id-1-container { background-color: blue !important; }
Please let us know if you need further help!
Best regards,
SarahMay 29, 2017 at 11:03 am #800989Thank you, Sarah.
Exactly what I needed.
May 29, 2017 at 12:20 pm #801028Hi,
Glad that Sarah helped you :) Let us know if you need more assistance or if we can close the thread.
Best regards,
NikkoMay 29, 2017 at 12:28 pm #801033Please close this thread. You guys have been a huge help. Thanks again!
May 29, 2017 at 12:31 pm #801038Hi,
You’re very much welcome. Thanks for using Enfold :)
Best regards,
Nikko -
AuthorPosts
- The topic ‘Accordion color’ is closed to new replies.