How to limit the lines in quickview and single product short discription

This topic has 2 replies, 2 voices, and was last updated 6 days, 15 hours ago ago by Rose Tyler

  • Avatar: Tal
    Tal
    Participant
    December 15, 2024 at 09:04

    how to limit the lines of shortdiscription in quickview and in single products page and set read more button

    Content is visible for topic creator and
    support staff only.
    1 Answer
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    December 16, 2024 at 10:03

    Hello,

    Thank you for reaching out to us.

    To limit the number of lines in the short description on single product page the next custom CSS code can be used:

    .single-product .et_product-block .woocommerce-product-details__short-description  {
        display: -webkit-box;
        -webkit-line-clamp: 3; /* Adjust the number of lines as needed */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    , there is no read more button option, by default.

    A more detail link can be activated for Quickview via Theme Options > Woocommerce (Shop) > Shop elements > Quick view.

    Best Regards,
    8Theme’s Team

  • Viewing 2 results - 1 through 2 (of 2 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.