Shopify themes, liquid, logos, and UX
The text, and the login to see price buttons don't align. I have tried different css styling it's not working
here is the link to the preview copy https://tk5n4ipob1nfxpzb-64722895081.shopifypreview.com
Solved! Go to the solution
This is an accepted solution.
Hi @Villydev
You can follow the instruction here :
1. Go to Shopify > Online store > theme > customize
2. Click to Settings > Custom CSS > Paste this code to the section and save.
We see that due to the varying lengths of each product's title, it causes the buttons to be misaligned. Therefore, the suitable solution is if the title is too long, to cut it off, allowing only two rows to display.
a.card-information__text {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}
.card-information__top .card-article-info {
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}
Here is the result:
This is an accepted solution.
Hi @Villydev
You can follow the instruction here :
1. Go to Shopify > Online store > theme > customize
2. Click to Settings > Custom CSS > Paste this code to the section and save.
We see that due to the varying lengths of each product's title, it causes the buttons to be misaligned. Therefore, the suitable solution is if the title is too long, to cut it off, allowing only two rows to display.
a.card-information__text {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}
.card-information__top .card-article-info {
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}
Here is the result:
Hi, here is a link to the main preview. i Have applied it is not working https://1jqgsd6kie827587-64722895081.shopifypreview.com
Thank you so much for your quick response, but kindly check after i applied the styling why it's not working
May I know where you have added the CSS code please?
Can you share with me the screenshot? thank you
It worked, thank you so much, I just reduced the line text to 1 instead. I need help with one more thing, i want to add account text to my account icon. see image
So i tried this changing the line clamp to 1 instead, thank you so much for helping me on this
a.card-information__text {
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}
.card-information__top .card-article-info {
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}
You're welcome 😄
It worked, thank you so much, I just reduced the line text to 1 instead. I need help with one more thing, i want to add account text to my account icon. see image
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