Remove product count next to category headings on shop home

This topic has 4 replies, 3 voices, and was last updated 9 years, 10 months ago ago by Eva Kemp

  • Avatar: miximals
    miximals
    Participant
    January 30, 2015 at 22:00

    Hi,

    I am trying to remove the product count which is in () to the right of the category name on the shop home: http://miximals.com/shop/

    I’ve tried adding the following to themes/idstore/functions.php and it’s not working. Help?

    /*
    * Removes products count after categories name
    */
    add_filter( ‘woocommerce_subcategory_count_html’, ‘woo_remove_category_products_count’ );

    function woo_remove_category_products_count() {
    return;
    }

    Thanks,
    Kimberly

    3 Answers
    Avatar: Robert Hall
    Robert Hall
    Support staff
    January 31, 2015 at 08:47

    Hello,

    Try to add this code into custom.css file.

    .category-block .count{
    display:none;
    }

    Here is a video tutorial how to create custom.css: https://www.youtube.com/watch?v=Qok2zRedRMY&feature=youtu.be.

    Regards,
    Robert Hall.

    Avatar: miximals
    miximals
    Participant
    January 31, 2015 at 17:01

    Perfect – worked like a charm.

    Thanks Robert!

    Avatar: Eva
    Eva Kemp
    Support staff
    January 31, 2015 at 17:19

    Hello,

    You’re welcome.

    Regards,
    Eva Kemp.

  • Viewing 4 results - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service

Helpful Topics

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.