Site icon Experience Wordpress Developer Online – Design Develop and Maintenance Support

How to show the product short description on the shop page

If you want to display the ‘product short description’ field when viewing the product grid on shop page. Let’s see how to do this. Add this code in your theme’s functions.php file of your active child theme (or theme) and Save the file. It will print the product short description between the product price and the Add to Cart button.

This way the user can see an overview of each product’s details before having to click on one of the products to go into the full product view.

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;
}
Exit mobile version