Monday , February 3 2025

How to add a short product description in a WordPress category

If you need to add a description of a product in the list of products in a category, you can use this solution:

In the file /wp-content/plugins/woocommerce/templates/content-product.php find the line do_action( ‘woocommerce_shop_loop_item_title’ ); and under this line add the following code:

?>
   <div itemprop="description" class="introdesc">
<?php echo apply_filters( 'woocommerce_short_description', $post->post_excerpt ) ?>
   </div> <?

About iryna

I'm Iryna, a web developer from Ukraine with a decade of experience solving complex technical challenges in the world of freelance. Throughout my career, I've worked on everything from troubleshooting server-side issues and optimizing website performance to enhancing user interfaces. On this blog, I share detailed solutions to the technical problems I’ve encountered and methods that have worked best for me. In addition to my technical expertise, I’m also passionate about digital drawing. I hope the tutorials and insights I provide here will help both fellow developers and creatives alike in their own projects.

Check Also

How to remove 404 //fonts.gstatic.com and //fonts.googleapis.com from WordPress head section

I tried solutions with functions that should remove from head and , but a very …

2 comments

  1. Thank you so much!

  2. Hi, I wanted to know your price.

Leave a Reply

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