Normally, the category description text and image is displayed on each category page. So it will display on page 1, page 2, page 3, etc etc.
If you want this to appear only on the first page, add the following code snippet to your child theme’s functions.php file, or via the Code Snippets plugin.
1 2 3 4 5 6 7 8 9 |
add_action( 'wp', function() { $page = (get_query_var('paged')) ? get_query_var('paged') : 1; if ( 1 !== $page ) { remove_action( 'woocommerce_archive_description', 'shoptimizer_woocommerce_taxonomy_archive_description' ); remove_action( 'woocommerce_archive_description', 'shoptimizer_category_image', 20 ); // If you also want to remove the "Below category content" area: remove_action( 'woocommerce_after_shop_loop', 'shoptimizer_product_cat_display_details_meta', 40 ); }; }, 20 ); |