Accordion Shortcode – all the panes closed by default

Please Note: Theme customizations go beyond the scope of our support services and this article is provided solely as a courtesy to our customers. Please take a moment to review the Scope of our Support.

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

Was this useful? 2