Personalized checkout and custom promotions with Shopify Scripts
Hello, I'm trying to make the Product Title To Diminish When there's a lot of words On PC/MOBILE
Website - https://avokitchen.com/
EXAMPLE - I want it to be like this
On my website it shows the whole title
I will gladly appreciate if someone can help me on this.
Solved! Go to the solution
This is an accepted solution.
Hello!
You need to add this styles in your custom code stylesheet.
@media screen and (max-width: 768px) {
.full-unstyled-link {
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
}
}
Result:
Hope this helps.
This is an accepted solution.
You are welcome my Yusa!
Yes, all you have to do is change the property:
-webkit-line-clamp: 3;
This determines the number of lines desired, change the 3 for a 2. And there you have it.
This is an accepted solution.
You are welcome!
Yes you can, just remove the media statement. Leave it like this.
.full-unstyled-link {
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
Best,
This is an accepted solution.
Hello!
You need to add this styles in your custom code stylesheet.
@media screen and (max-width: 768px) {
.full-unstyled-link {
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
}
}
Result:
Hope this helps.
Hello Danny, thanks so much. Was wondering if those 3 dots could show up sooner like that there would be 2 row instead of 3.
This is an accepted solution.
You are welcome my Yusa!
Yes, all you have to do is change the property:
-webkit-line-clamp: 3;
This determines the number of lines desired, change the 3 for a 2. And there you have it.
Thank you it helped. Is there a way to apply this to PC too
This is an accepted solution.
You are welcome!
Yes you can, just remove the media statement. Leave it like this.
.full-unstyled-link {
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
Best,
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024