Currently there can only be one accordion opened at once, how can i allow all to be popped open?
How to leave accordion element open so all can be expanded.
1 reply · opened Jul 7, 2023
Hello,
This is possible but requires a minor change. Find the following code in the js/modules/accordion.js File:
[ch_pre type="js"]element.find('.accordion-header').removeClass('accordion-active ' + elActiveClass).next().slideUp("normal");[/ch_pre]
and either comment or delete this line. Thats't it. This will allow for all the Accordions to open without closing the other one. Additionally you can also add the data-collapsible="true" Attribute to the .accordion Element in the HTML Codes so that the Accordion can be closed by the user.
Hope this Helps!
Let us know if we can help you with anything else or if you find any further issues.
Have the same question, or something new?
Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.
Reply on the dashboard