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
Review Envato Item Support Policy
Follow us!
https://www.clapat.com/
https://www.facebook.com/clapat.ro
https://www.instagram.com/clapat.themes/
https://x.com/clapatdesign
https://www.linkedin.com/company/clapatstudio
https://www.tiktok.com/@clapatstudio
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
Review Envato Item Support Policy
Follow us!
https://www.clapat.com/
https://www.facebook.com/clapat.ro
https://www.instagram.com/clapat.themes/
https://x.com/clapatdesign
https://www.linkedin.com/company/clapatstudio
https://www.tiktok.com/@clapatstudio
That worked great.
many thanks.