Plugin Contributor
Nick C
(@modernnerd)
Hi @malupillas
You can add the full product description to the shop template when it’s set as your homepage by:
1. Editing your theme’s functions.php.
2. Adding this code to the bottom of the file:
add_action( 'woocommerce_after_shop_loop_item', 'custom_product_content_on_homepage', 9 );
function custom_product_content_on_homepage() {
if ( is_front_page() ) {
the_content();
}
}
Or use this code to output the “product short description” instead:
add_action( 'woocommerce_after_shop_loop_item', 'custom_product_description_on_homepage', 9 );
function custom_product_description_on_homepage() {
if ( is_front_page() ) {
the_excerpt();
}
}
I hope this helps as a starting point for you.
For further help with theme customisations, I recommend the StudioPress community resources here: https://my.studiopress.com/community/.
Hello Nick,
I did not explain very well, sorry.
I do not want the full product description on the home.
I would like the description of the page below grip of the products .
Thanks
Plugin Contributor
Nick C
(@modernnerd)
Hi @malupillas
I recommend posting this customisation question in the StudioPress forums, or using the Slack and Facebook groups:
https://my.studiopress.com/community/
It will help people to have a link to your site and a detailed description of what content you would like to appear where.