• 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)
  • Hi, just delete this part from the original code:
    .first().show().parent().addClass(‘active’)

    The original code can be found here:
    easy-responsive-shortcodes/js/accordion.js

    Or just contact me via contact form on https://www.portalmaya.com

    • This reply was modified 7 years, 9 months ago by mayazir.
Viewing 1 replies (of 1 total)
  • The topic ‘How do you use this code for closed accordions as default?’ is closed to new replies.