Shopify themes, liquid, logos, and UX
Hi!
how can i setup showing "..." after item name in cart drawer when it is too long for two lines, so lenght will be reduced?
Solved! Go to the solution
This is an accepted solution.
I hope I haven't misunderstood you! The following code will do what you want. You can change the values as you like. If you encounter any issues again, feel free to write, I'll help.
.cart-item__name {
display: -webkit-box!important;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
}
Hi
It can be done with manual coding. What is the website name?
Terence.
This is an accepted solution.
I hope I haven't misunderstood you! The following code will do what you want. You can change the values as you like. If you encounter any issues again, feel free to write, I'll help.
.cart-item__name {
display: -webkit-box!important;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
}
Thank you very much!
You're most welcome! It was just a small thing for me 😊
I'm not entirely sure what level of support you're looking for, but if you require fast and detailed coding assistance, please let me know.
We offer the Unique "Premium Coding Support" plans at affordable rates, including monthly, quarterly, bi-annual, and annual options, starting at 59 USD for 1 month! In addition to coding support, we also provide professional SEO reports at regular intervals, Advanced animation (Advanced CSS and JavaScript) coding assistance, Expert Consulting, Dedicated Custom Front-End Service and Coding, and Unique Mobile Premium Features. If you're interested, you can check out the link in my signature. Feel free to reach out via private message if you have any questions. 😉
Terence.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025