Callan Posted March 1 Share Posted March 1 Hi brains trust, I have tried changing the colour profile of an accordion in one of my courses but it keeps reverting back to original settings for some reason. Could someone assist please with correct CSS to change accordion description text to white (on my brown background). It's behind a paywall so attached is a screenshot of IDs and my attempted CSS. The site is: https://www.firstpeoplesleading.com.au/ Link to comment
Solution WCS Posted March 1 Solution Share Posted March 1 @Callan The CSS for this should be: #block-yui_###### .accordion-item__description{ color: white !important } Is that what you were using previously? Sometimes CSS doesn't display on the backend unless you save, leave the Custom CSS window, refresh, and then go back in. Callan 1 Did I help? Click 👍 or mark it as the solution! This helps others find the answers they need. Meghan | Westerly Creative Studio 🍪 Still need your website policies? Termageddon makes it easy. Get 10% off your first year! (< affiliate link) Link to comment
Callan Posted March 2 Author Share Posted March 2 Thank you! My CSS was a little off, I was using: #block-yui_3_17_2_1_1709022622203_38394 .accordion-item__description { text-color: #fffff !important; WCS 1 Link to comment
WCS Posted March 2 Share Posted March 2 @Callan Of course! Happy designing. 😊 Callan 1 Did I help? Click 👍 or mark it as the solution! This helps others find the answers they need. Meghan | Westerly Creative Studio 🍪 Still need your website policies? Termageddon makes it easy. Get 10% off your first year! (< affiliate link) Link to comment
Rhyan Posted August 13 Share Posted August 13 On 3/2/2024 at 6:51 AM, WCS said: @Callan The CSS for this should be: #block-yui_###### .accordion-item__description{ color: white !important } Is that what you were using previously? Sometimes CSS doesn't display on the backend unless you save, leave the Custom CSS window, refresh, and then go back in. I've tried adding this same code to Custom CSS but receive the "Syntax Error on line 1" msg. Do you know what might be the issue? Link to comment
WCS Posted August 14 Share Posted August 14 @Rhyan Yes! You need to use the block id # that matches your specific accordion. Download this plugin Squarespace ID Finder Go to the page with the accordion on your website and click the extension Find the #block-yui-_#### hovering over the accordion and click it (this will copy it) Replace the placeholder in the code with the unique block id you just copied You're also welcome to send me a link to the page and I can do this for you! Here's what it looks like for my accordion: So if I wanted to modify it, I would do: #block-yui_3_17_2_1_1709332417768_5305 .accordion-item__description{ color: red !important } Did I help? Click 👍 or mark it as the solution! This helps others find the answers they need. Meghan | Westerly Creative Studio 🍪 Still need your website policies? Termageddon makes it easy. Get 10% off your first year! (< affiliate link) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment