I like the accordion element in the visual composer. The only issue with it is that it opens automatically when you load a page. It would be better for the initial state to be closed not open.
Can you tell me how to change the initial state to closed.
I like the accordion element in the visual composer. The only issue with it is that it opens automatically when you load a page. It would be better for the initial state to be closed not open.
Can you tell me how to change the initial state to closed.
thanks
Hello,
try this
open /js/scripts.js file and remove line 1395
$('dl.accordion dt').filter(':first-child').addClass('accordion-active');
and then hard refresh the page (Ctrl+F5)
Thank you.
Clapat Support
https://www.clapat.com/
Review Envato Item Support Policy
Hi,
tried this and its still it's still open on page loading. any other ideas?
Yes and change the line after to
$('dd.accordion-content').filter(':nth-child(n+1)').slideUp(1).addClass('hide');
Thank you.
Clapat Support
https://www.clapat.com/
Review Envato Item Support Policy
That worked great.
many thanks.