Home › Forums › Porto Template › keeping accordions open
This topic contains 4 replies, has 2 voices, and was last updated by jmorin 3 months, 1 week ago. This post has been viewed 198 times
Is there a way to keep accordions open when clicking on one?
The default behavior is only one accordion open at a time (one opens, the other one closes). I want them to stay open unless clicked on again to close.
You can use the “Toggles” instead of “Accordion”.
Toggles have the behavior you want. You can see working on link below:
Please, try that and let me know if you need further assistance.
I wanted to use the appearance of the “Without Borders and Background” accordion. I didn’t want to have to mess with changing the css on the Toggles.
No easy way to do this with the accordions?
Ah right, this is a good reason for that.
In that case, just remove all attributes data-parent="#accordion" from accordion.
That did it. Thanks!