Refresh theme how to limit view of product title text

Vocxa
Visitor
1 0 0

Hi there.

 

how to show only 50 latter on product title on Shopify refresh theme. Or show only two lines.

79EBA13D-A5AC-4375-A35B-E3593541534B.jpeg

Reply 1 (1)

GemPages
Shopify Partner
5588 1261 1206

Hello @Vocxa ,

 

It's the GemPages Support Team and we are glad to assist you today!

 

I would like to give you the recommendation to support you so kindly follow the steps below:

 

1. Go to Online Store > Theme > Edit code of your current theme

GemPages_0-1679299234810.png


2. Open your theme.liquid theme file


3. Paste the below code before </head>

<style>
.card-wrapper .card__heading a {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 37px;
}
</style>

 

Let us know how it works for you.

 

Best regards,
GemPages Support Team

GemPages - Build any high-converting store pages for any business


- If you find my reply helpful, please hit Like and Mark as Solution
- Get connected: App Store | Blog | Community | Help Center