Sidebar Product Categories - by Tobio - on WordPress WooCommerce support

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

  • Avatar: Tobio
    Tobio
    Participant
    March 23, 2015 at 13:13

    Hello,

    on the left side you will find my Sidebar with all the Product Categories.
    By standart the css class is set to “open”. You see all the subcategories.

    Attached are some pictures:
    Actual situation:
    http://www.fotos-hochladen.net/view/1mjseqrg03i.jpg
    What I would like to do:
    http://www.fotos-hochladen.net/view/2uqjvnfx4e8.jpg
    I checked the code and saw that this is handeld by the css clas “opend” (picture attached)
    http://www.fotos-hochladen.net/view/38ntk9fbqdv.jpg

    Please tell me the code how to set all the product categories by default to “closed”.

    Thanks
    Tobi

    Please, contact administrator
    for this information.
    3 Answers
    Avatar: stan
    Stan Russell
    Participant
    March 23, 2015 at 14:35

    Hello,

    To close first category, edit wp-content/themes/royal/js/etheme.js file. Find and comment out line 1643:
    $this.find('>li').first().find('.open-this').html(minusIcon).parent().addClass('opened').find('ul.children').show();
    We recommend you to make backup before editing theme files.

    Thank you.
    Regards,
    Stan Russell.

    Avatar: Tobio
    Tobio
    Participant
    March 23, 2015 at 20:47

    Thanks!

    -Topic can be closed-

    Avatar: Eva
    Eva Kemp
    Participant
    March 23, 2015 at 22:26

    Hello,

    You’re welcome.

    Regards,
    Eva Kemp.

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

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