• When I open the page, the accordion is expanded. It is wrong. It must be collapsed at the start, and the visitor will open it. What can I do to repair this function?

    • This topic was modified 5 years, 9 months ago by hymer.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • A little bit late but I hope this helps someone with the same issue.

    On the file: wp-content/plugins/smooth-accordion/assets/js/smoothaccordion.js you can comment out (or delete, but it’s not recommendable) lines 184 to 192:

    
    if(S.initial instanceof Array){
            for(var i=0 ;i<S.initial.length; i++){
              $contents.eq(S.initial[i]).show();
              open(S.initial[i]);
            }
          } else {
            $contents.eq(S.initial).show();
            open(S.initial);
          }
Viewing 1 replies (of 1 total)
  • The topic ‘How to enable collapsed start?’ is closed to new replies.