This topic has 5 replies, 3 voices, and was last updated 8 years, 1 months ago ago by Robert Hall
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.
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.
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
What do you mean by that: “comment out line 1808”
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
You must be logged in to reply to this topic.Log in/Sign up