This topic has 4 replies, 2 voices, and was last updated 10 years, 7 months ago ago by Olga Barlow
I have Woocommerce categories widget in a sidebar. On each page with the sidebar, the first category automatically toggles as OPEN. What code can be implemented to ensure all categories remain closed until clicked on to toggle open?
Hello,
To close first category, edit wp-content/themes/legenda/js/etheme.js file. Find and comment out line 1389
etCats.find('>li').first().find('.open-this').html(minusIcon).parent().addClass('opened').find('ul.children').show();
Thank you! It worked. 🙂
Hello,
You are welcome!
Regards
Tagged: categories, ecommerce, themes, toggling, widget, woocommerce, wordpress
The issue related to '‘Woocommerce Categories Widget – Toggling’' has been successfully resolved, and the topic is now closed for further responses