This article covers how to add custom functions to enable the product description on your shop/catalog pages.

The product description is grabbed from the Product Short Description field(same as the “Excerpt” field) or generated from the first 55 words of your product post content.

This is considered a modification, and is provided as-is. We expect you understand what you are doing if applying coding changes using these or other WordPress tutorials. Make a backup of your existing file so you can replace it if something goes wrong and you need to start over. Modified files WILL probably be replaced by a theme update at some point, so keep note of your changes for future reference or see our guides below. We cannot assist you with modifying your theme or support problems you encounter as a result!

If you are modifying a theme as part of a client project, the following are really important!

How to Modify Your Theme the Right Way
How to Track Update Changes and Maintain Modifications

The Solution

  1.  Open the functions.php file for your child theme and add the following code to the bottom
  2. If your file has a ?> at the end, remove it and any blank lines at the end of the document (the closing bracket of this code should be the last thing in the file)
  3. Alternatively, create a new file such as woocommerce.php and add it to your child-theme’s ocmx/theme-setup folder.

Do not add these functions to your parent theme in a new file or it may cause a function conflict!

add_action( 'woocommerce_after_shop_loop_item_title', 'obox_woocommerce_product_excerpt', 35, 2); 
if (!function_exists('obox_woocommerce_product_excerpt'))  
     function lk_woocommerce_product_excerpt()  
     echo '<span class="excerpt">'; 
     echo '</span>';