I
I
Ilya Derevyannykh2021-11-28 10:52:45
WooCommerce
Ilya Derevyannykh, 2021-11-28 10:52:45

How to transfer the description in the category under the product?

I used this code, but it does not remove the description, but adds a copy of it after the products. How can it be modified to remove the default block?

remove_action( 'woocommerce_archive_description', 'woocommerce_taxonomy_archive_description', 10 );
add_action( 'woocommerce_after_shop_loop', 'woocommerce_taxonomy_archive_description', 100 );

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Litvinenko, 2021-11-28
@Ylia_dr

remove_action( 'woocommerce_archive_description', 'woocommerce_taxonomy_archive_description', 10 );
add_action( 'woocommerce_after_shop_loop', 'woocommerce_taxonomy_archive_description', 20 );

yes, same code. yes it works fine for me

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question