WordPress – Move category description to bottom of page

WordPress – Move category description to bottom of page

If you describe the WooCommerce category or the news category, it will help with better search engine optimization (SEO). However, if the description is too long, it will make it difficult for readers, they have to scroll through this piece of content to get to the content to read. So,  introduces the simple code below to help move the category description to the bottom of the page.

WordPress – Move category description to bottom of page

Move category description from top to the bottom

Add this code to the function.php of the active theme/child theme.

remove_action( ‘woocommerce_archive_description’, ‘woocommerce_taxonomy_archive_description’, 10 );

add_action( ‘woocommerce_after_shop_loop’, ‘woocommerce_taxonomy_archive_description’, 100 );

Apply for:

  • News category
  • WooCommerce Product Catalog
WordPress – Move category description to bottom of page
WordPress – Move category description to bottom of page

In addition to this, many of you use the Advanced Custom Fields (ACF) plugin to add a field below the product category description.

Advanced Custom Fields

5/5 - (1 bình chọn)

Trả lời

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *

Gọi ngay

Facebook Chat

Zalo Chat