Move Category Descriptions Below the Products
Shows the product category description after the product grid instead of before it, so shoppers see products first while the text still helps SEO.
Opens WPIDE on
Code
add_action( 'wp', function () {
if ( ! function_exists( 'is_product_taxonomy' ) || ! is_product_taxonomy() ) {
return;
}
remove_action( 'woocommerce_archive_description', 'woocommerce_taxonomy_archive_description', 10 );
add_action( 'woocommerce_after_shop_loop', function () {
if ( ! is_paged() ) {
echo '<div class="term-description wpide-term-description-below">';
woocommerce_taxonomy_archive_description();
echo '</div>';
}
}, 30 );
} );
Notes
For classic templates; the description shows on the first page of each category only, as WooCommerce does by default.
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.