How i can close the first category? - by yamigabriel

This topic has 4 replies, 2 voices, and was last updated 6 years, 3 months ago ago by Rose Tyler

  • Avatar: yamigabriel
    yamigabriel
    Participant
    January 16, 2018 at 00:44

    Hello,

    I have this issue with the category:

    is open by default: https://ibb.co/ftDDmm

    but i needed like this: https://ibb.co/eKGAXR

    i ask in envato market and they send me here.

    “Rose_Tyler AUTHOR TEAM

    about 16 hours ago Flag
    Hello,

    Thanks for the comment.
    2. You need to add a Categories widget in Appearance > Shop sidebar > http://prntscr.com/i0kv5t In this case, only first category will be opened, also we are planning to add an option to close this in one of next theme updates. If you want to close the first category for now, please submit a topic on our support forum and our team will gladly assist you.
    Have a nice day.

    Regards”

    Thank you.

    Please, contact administrator
    for this information.
    3 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 16, 2018 at 09:25

    Hello,

    I hope you are well today and thank you for the topic.
    To close first category, edit wp-content/themes/woopress/js/etheme.js file. Find and comment out line 1714 http://prntscr.com/i136pa:
    $this.find('>li').first().find('.open-this').html(minusIcon).parent().addClass('opened').find('ul.children').show();

    Regards

    Avatar: yamigabriel
    yamigabriel
    Participant
    January 16, 2018 at 19:53

    Thank you very much.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 17, 2018 at 08:34

    You’re welcome!
    Let us know if you need any further assistance.

    Regards

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

You must be logged in to reply to this topic.Log in/Sign up

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