bainternet
12/7/2017 - 12:28 PM

Keep accordion closed on page load

Keep accordion closed on page load

<?php // Leave this out if you already have an opening php tag in your file!
function elementor_accordion_title() { ?>
	<script>
		jQuery(document).ready(function() {
			jQuery('.elementor-accordion-title').removeClass('active');
			jQuery('.elementor-accordion-content').css('display', 'none');
		});
	</script>
<?php }
add_action( 'wp_footer', 'elementor_accordion_title' );