Please send me a piece of code for CSS or for snippet, to change orderby of Woo categories by ID, or how they are sorted in the Categories table in woocommerce.
What happens is, in the Basel sidebar (class=”widget-area basel-sidebar-content”) in shop https://www.independent.wine/wine-shop/, categories are shown in the alphabetical order. So I have (1) By country (2) Collections (3) Red wine, etc….(7) White wine. I want to prioritise styles of wine: (1) Red wine (2) White wine…etc.
it’s actually not a big change, I think the theme can overwrite Woo’s hooks. We are trying to
change the sorting inside the class=”sidebar-widget woocommerce widget_product_categories”, to sort by ID.
I’ve found this code on Sorceforge, but I think it has to be hammered a little to be compatible with Basel. Can you please have a look – if you can make this work this would be really helpful. Thank you in advance!