Vertical menu problems - by weix4 - on WordPress WooCommerce support

This topic has 5 replies, 3 voices, and was last updated 8 years, 1 months ago ago by Robert Hall

  • Avatar: weix4
    weix4
    Participant
    March 17, 2016 at 11:31

    Hi

    The vertical menu (product categories) submenus stay open for some reason. I think it happened, when we imported the products.

    Other question is, how to change the order of them. We don’t want to have it in alphabet order, like it is right now.

    Third question. How to change the “Product Categories” heading name of that vertical menu.

    4 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    March 17, 2016 at 11:49

    Hello,

    1. To close a category you need edit wp-content/themes/woopress/js/etheme.js file. Find and comment out line 1806
    $this.find('.current-cat.parent-level0, .current-cat-parent').find('.open-this').html(minusIcon).parent().addClass('opened').find('ul.children').show();

    2./3. Go to Appearance > Widgets > Shop Sidebar area and add “Woocommerce Product Categories” widget into there, write your title in the widget settings. To change order you need select “Category order” in “Order by” field in the widget settings, then drag your categories as you wish in Products > Categories section.

    Regards,
    Eva Kemp.

    Avatar: Robert Hall
    Robert Hall
    Support staff
    March 17, 2016 at 11:50

    Hello,

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

    2) You can order it how you want, just move the categories items in Product->Categories (See screenshot: http://prntscr.com/agcdev) then navigate to Appeatance->Widgets->Shop Sidebar-> and change order by to Category Order. (http://prntscr.com/agcdmt)

    3) See screenshot: http://prntscr.com/agcdz7
    Regards,
    Robert Hall

    Avatar: weix4
    weix4
    Participant
    March 17, 2016 at 21:50

    What do you mean by that: “comment out line 1808”

    Avatar: Robert Hall
    Robert Hall
    Support staff
    March 18, 2016 at 08:48

    Hello,

    I mean to replace this code
    $this.find('>li').first().find('.open-this').html(minusIcon).parent().addClass('opened').find('ul.children').show();
    for
    /*$this.find('>li').first().find('.open-this').html(minusIcon).parent().addClass('opened').find('ul.children').show();*/

    Regards,
    Robert Hall

  • Viewing 5 results - 1 through 5 (of 5 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.