Hi experts! I would like to get in to my collections that products with long names do not display/appear completely, just one line like the picture here below. Can it be fixed on Dawn theme?
Want to have like this site: ALL PRODUCTS – supvogue
A user wants to truncate long product titles on collection pages to display only one line (with ellipsis), similar to a reference site they provided.
Two solutions offered:
GemPages Support Team suggests:
</head> tagPageFly-Victor recommends:
.card__content .card__information .card__heading > a-webkit-line-clamp: 2, text-overflow: ellipsis, and overflow: hidden to limit title displayBoth solutions involve editing the Dawn theme code to control product title truncation on collection pages. The discussion remains open pending user feedback on which approach works.
Hi experts! I would like to get in to my collections that products with long names do not display/appear completely, just one line like the picture here below. Can it be fixed on Dawn theme?
Want to have like this site: ALL PRODUCTS – supvogue
Hello @Kingstone ,
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:
Open your theme.liquid theme file
Paste the below code before
Let us know how it works for you.
Best regards,
GemPages Support Team
Hi @Kingstone
This is Victor from PageFly - Shopify Page Builder App, I’d like to suggest this idea:
Online Store ->Theme ->Edit code
Assets ->Base.css
.card__content .card__information .card__heading > a {
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
display: -webkit-box;
font-size: 14px;
line-height: 1.8;
margin: 0;
overflow: hidden;
text-overflow: ellipsis;
}
Hope you find my answer helpful!
Best regards,
Victor | PageFly