This topic has 4 replies, 3 voices, and was last updated 9 years, 1 months ago ago by Eva Kemp
How can i have only the current cat open in the toggle categories on the sidebar and all other close ?
Hello,
You can close first category by default via editing etheme.js file (wp-content/themes/royal/js folder)
Please find // ! Categories Accordion
section in code and comment out the following code
$this.find('>li').first().find('.open-this').html(minusIcon).parent().addClass('opened').find('ul.children').show();
Regards,
Robert Hall.
Doesn’t work.
I managed to close all category by putting this line a comment .
Line 1771
$this.find('.current-cat.parent-level0, .current-cat-parent').find('.open-this').html(minusIcon).parent().addClass('opened').find('ul.children').show();
But i want to have my active category open.
If my category is
fruits -> exotic -> banana
I want top open fruit & exotic
Put not others category per exemple:
fruits -> local need top be closed
Hello,
Try to comment the code that my colleague provided, not the one you showed.
Thank you.
Regards,
Eva Kemp.
Tagged: default, persuasive, product categories, themes, toggled close, woocommerce, wordpress
You must be logged in to reply to this topic.Log in/Sign up