Looking for a way to remove the WooCommerce results count? This is the result text that shows up on the WooCommerce product archive pages that displays the amount of products you are currently viewing and the total amount of products in your current query. Removing it is simple. Just copy and paste this snippet into your WordPress themes functions.php file and you’re good to go!
|// Remove the result count from WooCommerce|
|remove_action( 'woocommerce_before_shop_loop' , 'woocommerce_result_count', 20 );|
Your welcome, glad it helped you!
Ivo Andreev says
Sweet! Glad to help!
You’re kidding me. It just killed my entire site. Are you meant to copy / paste exactly as is?
My guess is that your included the opening PHP tag in the code but the location that you added the code to already had an opening PHP tag. If that is the case you would need to only add the code below the PHP tag from the code snippet.
If you add another opening PHP tag inside of that block it will trigger a fatal error and crash the entire site.
Morgana Chang says
Thanks! Can’t believe there’s no options for it under Woocommerce display settings…
Worked great, thank!
Is there a way to apply this for Mobile devices only?
You could try using this in combination with the WordPress wp_is_mobile() function.
Or you could just hide it from view in mobile devices using CSS Media Queries. Thanks!
Thank you Jordan, that was very helpful!