Hi guys,
I need all accordion sections on the website to be collapsed by default when the page loads.
Now, in every accordion there is one section always open by default.
I need them closed (collapsed) and on click they should open and on second click they should close again.
I already posted this question at ThemeForest comments and Ed sent me 2 solutions but neither one is working.
First:
change /js/functions.js lines 637-640 from:
jQuery('.accordion').accordion({
collapsible: true,
autoHeight: false
});
to:
jQuery('.accordion').accordion({
collapsible: true,
autoHeight: false,
active: false
});
Second:
change /includes/page-builder/assets/js_composer_front.js lines 134-138 from:
$tabs = jQuery(this).find('.wpb_accordion_wrapper').accordion({
header: "> div > h3",
autoHeight: true,
heightStyle: "content"
})
to
$tabs = jQuery(this).find('.wpb_accordion_wrapper').accordion({
header: "> div > h3",
autoHeight: true,
active: false,
heightStyle: "content"
})
I have to solve this very fast and I would be very grateful if you could help me with this.
Thank you in advance !