Powerful contact management for Android · Save smarter. Export faster.
Auto Contact Saver & Exporter
Tools Features How It Works Export Pricing Download
Get the App →

Category: WooCommerce

  • How to hide product counts from WooCommerce categories?

    To hide product counts from WooCommerce categories, you can use custom code snippets or a plugin

    Method 1: Using Custom Code Snippets

    1. Access your WordPress site’s admin area.
    2. Navigate to “Appearance” and click on “Theme Editor” or access your site’s files via FTP and edit the theme’s functions.php file.
    3. Locate the file corresponding to your active theme and open it.
    4. Add the following code snippet at the end of the file:

    add_filter( ‘woocommerce_subcategory_count_html’, ‘hide_woocommerce_category_count’ );
    function hide_woocommerce_category_count( $html ) {
    $html = ”;
    return $html;
    }

    Method 2: Using a Plugin

    1. Access your WordPress site’s admin area.
    2. Navigate to “Plugins” and click on “Add New.”
    3. Search for the “WooCommerce Hide Category Product Count” plugin.
    4. Install and activate the plugin.
    5. Once activated, the plugin will automatically hide the product counts from WooCommerce categories.