This topic has 18 replies, 2 voices, and was last updated 6 years, 10 months ago ago by Rose Tyler
Hi there. I cannot, for the life of me, figure out how to change the font colour of individual accordion titles.
I know the class is .vc_tta-panel-title as I can change the font-family, but the colour just will not change!
I’m sure it’s something simple.
Please help.
Thanks.
Hello,
To find out classes which need to be used, you may inspect code of site using inspector tools http://prntscr.com/i2jt76 https://developer.chrome.com/devtools
Let us know if you need any further assistance.
Regards
That’s exactly what i did! And how I discovered .vc_tta-panel-title
I can use it to change the font, but not the font colour!
Hi Rose. I have placed a link to the page in question in Private Content.
I would like the accordion section titles to be white font, not grey.
Only on this page though.
Hello,
Thanks for the link.
Please try to add this code in Custom css for page http://prntscr.com/i2n8wn:
.vc_tta-panels .vc_tta-panel-title span {
color: white !important;
}
Regards
AMAZING!
And how would I turn the – and + icons white?
Thank you so much Rose!
.wpb-js-composer .vc_tta .vc_tta-controls-icon::before, .wpb-js-composer .vc_tta .vc_tta-controls-icon::after {
border-color: white !important;
}
Regards
Hey Rose. That one didn’t work!
Hello,
I’ve checked your site code via console and do not see the custom css code. Did you remove the code?
Please see this screenshot http://prntscr.com/i3spmn
Could you please provide temporary wp-admin access in Private Content?
Regards
Strange. I placed it in the style.css in my child theme and it didn’t work.
However, it works in the custom css field of the theme settings.
My understanding is that they should both work. Is this wrong?
Thanks Rose.
It is strange that the code doesn’t work from style.css of the child theme, if the child theme activated on your site.
Provide us with temporary wp-admin and FTP access in Private Content, so we could check a reason of the problem.
Regards
See private content Rose.
I worked out how to apply the white titles to this accordion ONLY, as I don’t want every title on the site to be white. However, I would also like the icons to be white ONLY on this accordion, which I have assigned the class ‘Acc_IN_Reg’. Can’t seem to get this to work though…
You may change the code to this (contain your custom class):
.wpb-js-composer .vc_tta.Acc_IN_reg .vc_tta-controls-icon::before, .wpb-js-composer .vc_tta .vc_tta-controls-icon::after {
border-color: white !important;
}
or simply add this code in Custom css for page http://prntscr.com/i3x15p
You have code in style.css file of the child theme and if only part of the code doesn’t work, this means that you have some problem, for example, is not closed {
, so check code which you added in the file.
Regards
Okay that kinda works. Although, if you check the accordion on the page listed in the private content section, you’ll see the upward stroke of the plus icon is white!?
There are no parsing issues in my style.css file either.
Anything else it could be?
Thanks again.
Please change the page now. I have a bit changed the code in Theme Options > Styling > Custom css > Global custom css.
About style.css file, it also can be a cache issue. Do not forget to clear cache before checking effect of custom code. Also, do you edit style.css file via Appearance > Editor or via FTP?
Regards
Fixed! Thanks Rose. I use ftp.
Great. Feel free to ask if you have any other questions.
Regards
The issue related to '‘Accordion styling.’' has been successfully resolved, and the topic is now closed for further responses