Home WooCommerce Tutorials Standard Post

Standard Post

Adjusting the Display Position of WooCommerce Product Category Page Descriptions

When building a website with WordPress and using WooCommerce to display products, for SEO purposes, we add descriptions to product category pages to layout keywords. By default, the WooCommerce category page description is displayed below the page title. In some cases, you may not want this text to be the first thing visitors see...

Posted on September 13, 2021 About 2 minutes read
调整WooCommerce产品分类页描述显示位置

When we build a website with WordPress and use WooCommerce to display products, for SEO purposes, we add description content to product category pages to layout keywords.

The default WooCommerce category page description is displayed below the page title. In some cases, you may not want this text to be the first thing visitors see. We can use the following code to move the category description to the bottom of the product list, so users first see the product list when entering the site, and only see the text you added after browsing the products.

// 调整分类描述顺序 奶爸建站笔记
add_action('woocommerce_archive_description', 'custom_archive_description', 2 );
function custom_archive_description(){
if( is_product_category() ) :
remove_action('woocommerce_archive_description', 'woocommerce_taxonomy_archive_description', 10 );
add_action( 'woocommerce_after_shop_loop', 'woocommerce_taxonomy_archive_description', 10 );
endif;
}
2.5/5 - (15 votes)
Previous 2 Plugins for Displaying English on the WordPress Frontend and Chinese in the Admin Dashboard Continue reading content around the same timeline. Next 2026 Latest NameSilo Domain Registration Tutorial (Including Promo Code + Alipay Payment, No Real-Name Verification Required) View the next related tutorial or experience.

AI Website Building Assistant

🤖
Hello! I am the Naibabiji AI Assistant. How can I help you?
Quick Consultation: