hide empty product catrgory
-
hi, i would like to hide empty categories.
I have found this code. is it ok or do you propose me something else?
thank you
functionwoo_hide_product_categories_widget( $list_args ){
$list_args[ ‘hide_empty’ ] = 1;
return $list_args;
}
add_filter( ‘woocommerce_product_categories_widget_args’, ‘woo_hide_product_categories_widget’ );
Hello,
Our theme has the options to hide categories, please remove the code for a while and let me know where you want to hide the empty categories.
Best Regards
hi,
1.i don’t want it to show on frontend header e.g https://i.imgur.com/gQ0kLxK.png .
on the categories block https://i.imgur.com/o3sO9aB.png they do not show up, as normal.
2. also on https://kourtakis.dikigoros-grafologos.com/product-category/fotistika-epaggelmatika/ you can see that on the category page there are both subcategories products and products. How can i keep only the subcategories? https://i.imgur.com/g8YDoLD.png
thanks
Hello,
1. Please check the option “Hіde empty categories” in the Theme Settings > Shop page > Sidebar and title.
2. You can configure the Product category view in Appearance > Customize > Woocommerce > Product category.
Best Regards
You are welcome! If you have any questions please feel free to contact us.
Best Regards
The topic ‘hide empty product catrgory’ is closed to new replies.