Hi,
I am trying to change the colour of the text of the titles on the these two accordians to white. (See screen shots)
The code I have used for .accordion__title doesnt seem to change the colour at all 
I currently have the following in my base css file:
.banner__heading span {
color: #FFAC9A !important;
}
.banner__text span {
color: #FFAC9A !important;
}
h1, h2, h3, h4, h5, .h0, .h1, .h2, .h3, .h4, .h5 {
color: #AFD7E8 !important;
}
.accordion__title h4 {
color: #FFFFFF !important;
}
.footer-block__heading {
color: #fff !important;
}
.announcement-bar__message {
color: #fff !important;
}
.header__menu-item, .header__menu-item:hover { color: #AFD7E8 !important; }
}
Please let me know how to fix this. https://peachandpetals.com.au/
V
1 Like
Hi @VeeZed ,
You can follow the instruction below:
- Go to Online Store->Theme->Edit code
- Asset->/component-accordion.css->paste below code at the bottom of the file:
.accordion__title {
color: #fff !important;
}
Hope it can help you.
Hi @Amlibolikha ,
Cheer up! It happens. The reason an !important does not work is because you have a code below in the base.css.
h1, h2, h3, h4, h5, .h0, .h1, .h2, .h3, .h4, .h5 {
color: #AFD7E8 !important;
}
Just a piece of advise, never use “!important”, if you are expecting the code to change in the future. You can read this regarding CSS Specificity.
Specificity Hierarchy
Ex: Button
- Inline style. The style inside the element.
- Identifiers(ID). Called as: #sectionButton{ background: red }
- Classes, pseudo-classes and attributes. Called as: .primary–button { background: red }
- Elements and pseudo-elements. Called as: button { background: red }
With this being said, I hope you know what to do. Let me know if you still need help
Thank you @Amlibolikha is it possible to only change the colour for the two specific accordians shown above?
This code changes the text colour site wide, which i didnt want to do.
Many thanks
V
1 Like
Hi @VeeZed ,
Thanks you for reply
Can you show this section again so I can see it for you to try. On the homepage I can no longer see it