Hide empty category - woo

Hi,
how to automatically hide empty category/subcategory in head menu when the category doesn’t contain any products (stock 0) or products are concept.

Is it possible?

I have Pro.

Thanks

Hello Teem,

Thanks for writing in! Are you referring to the menu in your navbar? Regretfully there isn’t an option of the menu that can determine if the category menu items has products or it is empty.

Hope this helps.

Is can to create some hook? When the category doesn’t contain any products - it add style class with display: none and it turn off the category.

Hello @matuskm,

Yes, it is possible with custom code but it will be outside the scope of our support. As a starting guide, please check the following article.

Nice!

Thank you

You’re most welcome,

Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.