Accordion auto opening issue - by mistamos

This topic has 4 replies, 2 voices, and was last updated 8 years, 11 months ago ago by Eva Kemp

  • Avatar: mistamos
    mistamos
    Participant
    May 7, 2015 at 16:26

    Hi

    I am experiencing a strange bug in that when I have any accordions on any pages the first accordion always opens on page load. Any idea why this may happen? This is happening for the generated product category accordions as well as any in page accordions I use.

    Is this a common issue or do you need me to provide more information?

    Thanks

    3 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    May 7, 2015 at 17:39

    Hello,

    To close first category, edit wp-content/themes/woopress/js/etheme.js file. Find and comment out line 1633
    $this.find('>li').first().find('.open-this').html(minusIcon).parent().addClass('opened').find('ul.children').show();

    Regards,
    Eva Kemp.

    Avatar: mistamos
    mistamos
    Participant
    May 13, 2015 at 13:31

    Thanks Eva, that worked.

    Nick

    Avatar: Eva
    Eva Kemp
    Support staff
    May 13, 2015 at 13:59

    Hello,

    You’re welcome.

    Regards,
    Eva Kemp.

  • Viewing 4 results - 1 through 4 (of 4 total)

The issue related to '‘Accordion auto opening issue’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.