Show product description on category page

This topic has 6 replies, 2 voices, and was last updated 5 years ago ago by Rose Tyler

  • Avatar: louis
    louis
    Participant
    April 18, 2019 at 01:55

    Hi sir/mdm,

    How to show product description on category page?

    Please, contact administrator
    for this information.
    5 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 18, 2019 at 08:10

    Hello,

    Add this code at the end of the file functions.php of your child theme:

    add_action( 'woocommerce_after_shop_loop_item', 'custom_show_excerpt_shop_page', 5 );
    function custom_show_excerpt_shop_page() {
        global $product;
    
        echo $product->post->post_excerpt;
    }

    This code will print the product short description like on the screenshot – http://prntscr.com/ndjiv3
    I’d suggest to use it only if you don’t have too many products in your store and if the short description is not long. Otherwise, your store page could became very long and also it won’t be easy to read the description.
    Read more – https://businessbloomer.com/woocommerce-visual-hook-guide-archiveshopcat-page/

    Regards

    Avatar: louis
    louis
    Participant
    April 19, 2019 at 08:12

    Hi,
    I have tried the code. But nothing turns out.

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 19, 2019 at 08:15

    Hello,

    Please add this code in style.css file of your child theme:

    .products-grid .product-excerpt {
        display:  block;
    }

    Regards

    Avatar: louis
    louis
    Participant
    April 19, 2019 at 08:34

    Hi,

    Thank you so much. It works! Is there any code to change the whole woocommerce category thumbnail to quick view only?

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 19, 2019 at 13:01

    Hello,

    Sorry, but additional customization is outside the scope of our basic support.

    Regards

  • Viewing 6 results - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.