Skip to main content
All CollectionsTroubleshooting and FAQsFrequently Asked QuestionsGeneral
How to Display the Product's Short Description Text on WooCommerce Shop/Category Pages and Woo Products Module
How to Display the Product's Short Description Text on WooCommerce Shop/Category Pages and Woo Products Module

Learn how to use hooks, custom functions, and Divi’s settings to add and customize short descriptions for your products.

Updated over a week ago

Displaying the product's short description text on WooCommerce shop and category pages can provide customers with essential information at a glance, enhancing their shopping experience. This can also be useful when using the Woo Products Module in Divi, allowing for a more informative and engaging product display.

In this article, we will guide you through the process of displaying the short description text on your WooCommerce shop and category pages as well as within the Woo Products Module.

By default, WooCommerce Description is visible only on single product pages.

Add the Short Description text without a Child theme

  1. Go to WordPress Dashboard → Plugins → Add New Plugin

  2. Install and activate the Code Snippets plugin

  3. Create a new PHP snippet

  4. Add this PHP code

    function woocommerce_after_shop_loop_item_title_short_description() {
    global $product;
    if ( ! $product->get_short_description() ) return; ?>
    <div itemprop="description">
    <?php echo apply_filters( 'woocommerce_short_description', $product->get_short_description() ) ?>
    </div>
    <?php
    }

    add_action('woocommerce_after_shop_loop_item_title', 'woocommerce_after_shop_loop_item_title_short_description', 5);

Add the Short Description text using a Child theme

  1. Install and activate a Child Theme for Divi

  2. Go to WordPress Dashboard → Appearance → Theme File Editor

  3. Open the functions.php file

  4. Add this PHP code after the existing code:

    function woocommerce_after_shop_loop_item_title_short_description() {
    global $product;
    if ( ! $product->get_short_description() ) return; ?>
    <div itemprop="description">
    <?php echo apply_filters( 'woocommerce_short_description', $product->get_short_description() ) ?>
    </div>
    <?php
    }

    add_action('woocommerce_after_shop_loop_item_title', 'woocommerce_after_shop_loop_item_title_short_description', 5);

Add the Short Description text to each Woo Product

  1. Go to WordPress Dashboard → Products

  2. For each product, add your text in the Product Short Description area

    Woo products - Short Description text

The result can be seen in the screenshot below:

Woo products - Short Description text added

Style the Short Description text

  1. Go to WordPress Dashboard → Divi → Theme Options → General Tab → Custom CSS

  2. Add this CSS code:

    .woocommerce ul.products li.product div[itemprop="description"] {
    color: #000000;
    line-height: 1.4em;
    font-size: 14px;
    }
Did this answer your question?