Tagged: category, description, Product
-
AuthorPosts
-
October 2, 2018 at 11:01 am #1016966
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.
October 2, 2018 at 11:36 am #1016986Hey brunet77,
Did the code you are referencing work or not? Where can we see the results you are getting?
Best regards,
RikardOctober 2, 2018 at 12:54 pm #1017022Hi 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.
October 2, 2018 at 2:58 pm #1017085Hi brunet77,
Here are some threads to consider:
https://stackoverflow.com/a/26463663
https://kriesi.at/support/topic/moving-category-description-under-products/#post-533014If you need further assistance please let us know.
Best regards,
VictoriaOctober 2, 2018 at 3:03 pm #1017093OMG
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!!!
October 2, 2018 at 3:52 pm #1017118Hi brunet77,
Glad you got it working for you! :)
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.
