Product Categories Menu - by Steve03 - on WordPress WooCommerce support

This topic has 8 replies, 3 voices, and was last updated 8 years, 1 months ago ago by Jack Richardson

  • Avatar: Steve03
    Steve03
    Participant
    October 28, 2016 at 05:25

    Hi there,

    Is there a CSS code to close the product categories menu when entering the site? Or do I have to modify the etheme.js file? Currently they are all open when you enter the site when they should be closed.

    Thanks for your help

    7 Answers
    Avatar: Robert Hall
    Robert Hall
    Support staff
    October 28, 2016 at 07:34

    Hello,

    In this case you need to comment out the following code in etheme.js file on line 1819
    $this.find('>li').first().find('.open-this').html(minusIcon).parent().addClass('opened').find('ul.children').show();

    Regards,
    Robert Hall

    Avatar: Steve03
    Steve03
    Participant
    October 28, 2016 at 07:44

    Hi there.

    Thank you both for your help however, both of them already exist. Should either one of those codes be modified?

    Thanks again

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    October 28, 2016 at 08:55

    Hello,

    You just need comment the code that mentioned in the previous post.

    Best regards,
    Jack Richardson.

    Avatar: Steve03
    Steve03
    Participant
    October 28, 2016 at 09:01

    Hi Jack,

    Thanks for the response.

    I did comment out the code. When I went to save, I got a notification that there was nothing to save.

    This is the code currently in line 1819:

    $this.find(‘>li’).first().find(‘.open-this’).html(minusIcon).parent().addClass(‘opened’).find(‘ul.children’).show();

    As you can see, they are identical.

    Look forward to hearing from you.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    October 28, 2016 at 09:19

    Hello,

    Did you comment it?
    Try to comment the code or remove it.

    Best regards,
    Jack Richardson.

    Avatar: Steve03
    Steve03
    Participant
    October 28, 2016 at 09:28

    Thanks Jack – code removed and all OK.

    Was a little worried removing it but it works.

    Appreciate your (and everyone else) help and patience.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    October 28, 2016 at 09:48

    Hello,

    You’re welcome.

    Best regards,
    Jack Richardson.

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

The issue related to '‘Product Categories Menu’' 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.