• Resolved tomz6

    (@tomz6)


    Hi,

    I’m trying to hide the product count using the two codes below:

    add_filter( 'woocommerce_subcategory_count_html', '__return_false' );

    .woocommerce-loop-category__title mark.count {
    display: none;
    }

    I remember they worked in the past, so not sure why it doesn’t work now.

Viewing 1 replies (of 1 total)
  • Hi there @tomz6,

    Thanks for reaching out.

    Could you please try adding this PHP code snippet:

    add_filter( ‘woocommerce_subcategory_count_html’, ‘db_remove_cat_prod_count’ ); function db_remove_cat_prod_count() { return; }

    Let us know how it goes.

Viewing 1 replies (of 1 total)

The topic ‘Hide product count’ is closed to new replies.