Show product description on category page

5 replies2 participantsUpdated by Rose Tyler

  • Avatar: louis
    louis
    Participant

    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

    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

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

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff

    Hello,

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

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

    Regards

    Avatar: louis
    louis
    Participant

    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

    Hello,

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

    Regards

Want to reply? Log in, or register with your ThemeForest purchase code, to reply to this topic.

Login / Register