I’m using 3 “accordions” on a page. One is open (active). I would like to close the open accordion when clicking on the other. So when I click a close accordion it open it and close the one who was previously open.
So I won’t have all accordions open all the time but just one.
[accordion active="active" title="ENG"] my content [/accordion]
i see you have used toogle shortcode, use accordion shortcode instead.
[accordions]
[accordion active="active" title="accordion 1"]Put your content here.[/accordion]
[accordion title="accordion 2"]Put your content here.[/accordion]
[/accordions]
active="" ... active keyword is for opened style
title="" ... the caption text of the accordion