Home Forums WoodMart – Premium Template hide empty product catrgory

This topic contains 5 replies, has 2 voices, and was last updated by Elise Noromit Elise Noromit 1 month, 3 weeks ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #245886

    giannisth
    Customer

    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’ );

    Private Content Hidden
    #245912

    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

    #245968

    giannisth
    Customer

    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

    #246129

    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

    #246200

    giannisth
    Customer

    great, thank you

    #246294

    You are welcome! If you have any questions please feel free to contact us.

    Best Regards

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘hide empty product catrgory’ is closed to new replies.