How to hide product counts from WooCommerce categories? by BackGet | Jun 7, 2023 | Wordpress, WooCommerce | 0 comments Table of Contents Toggle To hide product counts from WooCommerce categories, you can use custom code snippets or a pluginMethod 1: Using Custom Code SnippetsMethod 2: Using a Plugin To hide product counts from WooCommerce categories, you can use custom code snippets or a plugin Method 1: Using Custom Code Snippets Access your WordPress site’s admin area. Navigate to “Appearance” and click on “Theme Editor” or access your site’s files via FTP and edit the theme’s functions.php file. Locate the file corresponding to your active theme and open it. 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 Access your WordPress site’s admin area. Navigate to “Plugins” and click on “Add New.” Search for the “WooCommerce Hide Category Product Count” plugin. Install and activate the plugin. Once activated, the plugin will automatically hide the product counts from WooCommerce categories. Submit a Comment Cancel replyYour email address will not be published. Required fields are marked *Comment * Name * Email * Website Save my name, email, and website in this browser for the next time I comment.