Accordion Shortcode – all the panes closed by default
Question:
How I can make the Accordion shortcode panes all closed by default?
Original poster
Solution:
You have to open the script/script.js file and modify line 47:
jQuery(this).tabs(jQuery(this).find('div.pane'), {tabs: 'h2', effect: 'slide', initialIndex: 0});
to be like this:
jQuery(this).tabs(jQuery(this).find('div.pane'), {tabs: 'h2', effect: 'slide', initialIndex: null});
Pexeto