Not much time ago I was searching on Google some stuff for WooCommerce, and I found a request from a user asking how to show the product short description on the shop page.
I don’t think it could be useful for all shops, but it could for some.
Here’s how you can do it.
Add this code at the end of the file functions.php in wp-content/themes/your-child-theme-name/:
add_action( 'woocommerce_after_shop_loop_item', 'woo_show_excerpt_shop_page', 5 ); | |
function woo_show_excerpt_shop_page() { | |
global $product; | |
echo $product->post->post_excerpt; | |
} |
The snippet above will print the product short description between the product price and the Add to Cart button.
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.
Contribute to Improving This Blog
Did you enjoy this article? Was it helpful? Contribute to help me write more articles! The funds collected from this blog are reinvested directly into improving my skills or the blog so that I can provide more and better content!
Make a one-time donation
Make a monthly donation
Make a yearly donation
Choose an amount
Or enter a custom amount
Your contribution is appreciated.
Your contribution is appreciated.
Your contribution is appreciated.
DonateDonate monthlyDonate yearly
Leave a Reply