How do you use this code for closed accordions as default?
-
Hello! I read through all the threads about having the accordions closed as a default and found this snippet of code:
$(window).load(function(){
// Hack the WP Accordion
$(‘.accordion-item.active .accordion-item-content’).css(‘display’, ‘none’);
$(‘.accordion-item.active’).removeClass(‘active’);
});But I am not a programmer and don’t know what to do with it. Where do I place that code and is it possible to have the accordions closed as a default? Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How do you use this code for closed accordions as default?’ is closed to new replies.