To show the Product Description/ Excerpt on Woocomerce Shop Page

Now-a-days everyone use WordPress for creating their website, blog, E-commerce. Recently i got some query from my followers that they want to customize their woocommerce shop page, so they asked how to show product description on woocommerce shop page.

By default, woocommerce doesn’t show product description on shop page.It only  displays title,price as shown below:

woocomerce

So based on that query, here i am trying to sort out how you can add product description or excerpt on woocomerce shop page.

Add the below code to your functions.php file under 

wp-content/theme/Your-theme-name/function.php Or

Add the below code straight away in WordPress 

Dashboard–>Appearance–>Editor–> function.php

				
					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;

}
				
			

Now your shop page would able to display the product info or excerpt info.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top