This topic has 6 replies, 2 voices, and was last updated 5 years, 7 months ago ago by Rose Tyler
Hi sir/mdm,
How to show product description on category page?
Hello,
Add this code at the end of the file functions.php of your child theme:
add_action( 'woocommerce_after_shop_loop_item', 'custom_show_excerpt_shop_page', 5 );
function custom_show_excerpt_shop_page() {
global $product;
echo $product->post->post_excerpt;
}
This code will print the product short description like on the screenshot – http://prntscr.com/ndjiv3
I’d suggest to use it only if you don’t have too many products in your store and if the short description is not long. Otherwise, your store page could became very long and also it won’t be easy to read the description.
Read more – https://businessbloomer.com/woocommerce-visual-hook-guide-archiveshopcat-page/
Regards
Hi,
I have tried the code. But nothing turns out.
Hello,
Please add this code in style.css file of your child theme:
.products-grid .product-excerpt {
display: block;
}
Regards
Hi,
Thank you so much. It works! Is there any code to change the whole woocommerce category thumbnail to quick view only?
Hello,
Sorry, but additional customization is outside the scope of our basic support.
Regards
You must be logged in to reply to this topic.Log in/Sign up