Remove “Showing all 12 results”
Removes the result count line above the products on shop and category pages.
<?php
add_action(
'wp',
static function () {
// Above and below the products, at whatever priority the theme uses (Storefront moves it).
foreach ( array( 'woocommerce_before_shop_loop', 'woocommerce_after_shop_loop' ) as $hook ) {
$priority = has_action( $hook, 'woocommerce_result_count' );
if ( false !== $priority ) {
remove_action( $hook, 'woocommerce_result_count', $priority );
}
}
}
);
In these packs
- WooCommerce: shop and product pages: Badges, price display, tabs and layout for your shop and product pages.