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,
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024