How do I Stylize The Accordion Add-on With CSS? - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

How do I Stylize The Accordion Add-on With CSS?

Ronny Ko

Ronny Ko

SP Page Builder 3 years ago

Hi,

I'm wondering why I can add CSS styling to the accordion Add-on. I would like to change the color and to make the corner sharp square instead of rounded. Id like to also change the light blue background color.

0
3 Answers
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 3 years ago #50399

Hello Ronny Ko

In the Accordion addon settings, set the style to Custom. Then the corner will be by default sharp and you will find the settings to change color, fonts etc.

https://prnt.sc/262zpxg

Best regards

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 3 years ago #50410

or all by custom CSS and custom CSS class. Here is general tip for beginners >> https://www.joomshaper.com/blog/which-line-of-css-i-have-to-edit-code-inspector-in-action

0
Pavel
Pavel
Accepted Answer
3 years ago #50415

Hi Paul. I think the documentation does not have enough clear explanations how to use CSS with addon. Maybe I missed something.

Hi Ronny. If you want to configure the accordion via CSS the best start style for this is "FAQ". You can use other styles but "FAQ" is the cleanest.

Switch to this style (optional) and add your own class (required).

After that, if you open the browser code inspector, you can find your class. And using it as a parent class in composite selectors, you can stylize any elements of the accordion via CSS.

0