If you’d like to add a product description to products on archive pages, add one of the following snippets to your functions.php
file or a custom functions plugin:
This snippet will add the Short Description below the product title:
add_action( 'woocommerce_after_shop_loop_item_title', function() {
the_excerpt();
} );
And here’s for the full description:
add_action( 'woocommerce_after_shop_loop_item_title', function() {
the_content();
} );
If you’d like to add the description somewhere besides below the title, refer to the WooCommerce Hooks Reference, and in particular the content-product.php
reference document.
2 Comments
The one I used on my site was great
Hi, Why the short description goes to top of the product image and not below the product title?
Comments are closed.