Woocommerce Categories Widget – Toggling

This topic has 4 replies, 2 voices, and was last updated 10 years, 7 months ago ago by Olga Barlow

  • Avatar: sitehook
    sitehook
    Participant
    April 6, 2014 at 02:02

    I have Woocommerce categories widget in a sidebar. On each page with the sidebar, the first category automatically toggles as OPEN. What code can be implemented to ensure all categories remain closed until clicked on to toggle open?

    Category List

    Please, contact administrator
    for this information.
    3 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 8, 2014 at 06:38

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

    Avatar: sitehook
    sitehook
    Participant
    April 8, 2014 at 19:35

    Thank you! It worked. 🙂

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 9, 2014 at 08:16

    Hello,
    You are welcome!

    Regards

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

The issue related to '‘Woocommerce Categories Widget – Toggling’' has been successfully resolved, and the topic is now closed for further responses

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