Hi,
Is it possible to hide one item’s children once another is clicked? So that the accordion doesn’t get too big if the user clicks a lot of the parent items?
Thanks in advance!
We use cookies to allow login, checkout, and analyze site traffic. By continuing to use this website, you consent to the use of cookies in accordance with our cookie policy.
OnPoint Plugins
Hi Ricardo,
Closing one section of the accordion when another is opened is possible by tapping into this plugin’s existing functionality.
This may be accomplish with a little custom JavaScript:
One way to put this on your site is to add the following action to your active theme’s functions.php file:
Note: This version of the custom JavaScript will only target the first level child accordions.
Have a great night!
Mat Lipe
geral
Hi Mat!
It works perfectly 😀
Thank you so much for your help and quick response!
Kind regards,
Carina