Tagged: category, description, Product
I want to put the description of the categories below the products of the category.
I have searched in google and found a solution add this line in functions.php
remove_action( ‘woocommerce_archive_description’,’woocommerce_taxonomy_archive_description’, 10 );
add_action( ‘woocommerce_after_shop_loop’, ‘woocommerce_taxonomy_archive_description’ );
Apparently if you add the description at the end of the category but do not delete it from the beginning.
I do not know if the Enfold theme can do something different.
Thank you.
Hey brunet77,
Did the code you are referencing work or not? Where can we see the results you are getting?
Best regards,
Rikard
Hi Rikard
This is the exemple https://demo.b2bactiva.com/categoria-producto/juegos/
Category “juegos”
duplicate description with this code
remove_action( ‘woocommerce_archive_description’, ‘woocommerce_taxonomy_archive_description’, 10 );
add_action( ‘woocommerce_after_shop_loop’, ‘woocommerce_taxonomy_archive_description’ );
Not remove the description in top.
Hi brunet77,
Here are some threads to consider:
https://stackoverflow.com/a/26463663
https://kriesi.at/support/topic/moving-category-description-under-products/#post-533014
If you need further assistance please let us know.
Best regards,
Victoria
OMG
Regards!!!! Victoria.
this code is perfect:
// move category description
add_action('init', 'woocommerce_mod');
function woocommerce_mod() {
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_taxonomy_archive_description', 11 );
add_action( 'woocommerce_after_shop_loop', 'woocommerce_taxonomy_archive_description', 5 );
}
Tnks very much!!!
Hi brunet77,
Glad you got it working for you! :)
If you need further assistance please let us know.
Best regards,
Victoria