How to make Elementor accordion be closed by default - Brown Surfing

How to make Elementor accordion be closed by default

Posted on: January 26th, 2022
By: Efrain Lemus

Add this code snippet as an HTML element. It has to be below the accordion, otherwise it won’t work.

<script>
jQuery(document).ready(function($) {
var delay = 100; setTimeout(function() {
$(‘.elementor-tab-title’).removeClass(‘elementor-active’);
$(‘.elementor-tab-content’).css(‘display’, ‘none’); }, delay);
});
</script>

Have any questions or comments? Write them below!


Leave a Reply

Your email address will not be published.