Home » WooCommerce: Show Product Description @ Shop Page

WooCommerce: Show Product Description @ Shop Page

by adminkys

If you want to show the “short description” field on the products that are on your homepage or in the loop, here’s the PHP code to add to your functions.php.

Here’s my brand new Shop page, where each product displays its short description

PHP Snippet: Show Product Description @ Shop / Category / Loop Pages

/**
 * @snippet       Show product short description @ WooCommerce Loop
 * @how-to        Get tutoraspire.com FREE
 * @author        Tutor Aspire
 * @compatible    WooCommerce 6
 * @donate $9     https://www.tutoraspire.com
 */

add_action( 'woocommerce_after_shop_loop_item_title', 'tutoraspire_shop_product_short_description', 35, 2 );

function tutoraspire_shop_product_short_description() {
     the_excerpt();
}

You may also like