Hello! I have a project on wordpress woocomerce. By default, the description is displayed only on the full page with the product. And I want to add to the displayed product description (composition) among the list of products:

steak

Do not tell me how this can be done? It is desirable that there was a possibility of editing from the admin panel. Maybe woocomerce already have ready-made solutions for this?

    1 answer 1

    You can try to display a short description under the product, you need to add the code in functions.php

    add_action( 'woocommerce_after_shop_loop_item_title', 'my_add_short_description', 9 ); function my_add_short_description() { echo '<span class="title-description">' . the_excerpt() . '</span><br />'; } 

    Or try a brief product description.

     <?php echo apply_filters( 'woocommerce_short_description', $post->post_excerpt ) ?>