Shopify themes, liquid, logos, and UX
Yes, some descriptions are two lines and some one line which pushes the prices/text etc...out of whack how can I make all of them align horizontally without having to expand one liner texts to two. Which is of course not doable because there are literally hundreds of products.
Almost need to say pad out all products to 2x lines of text thus pushing everything to line up? does that make sense? See pic below for whack alignment...lol.... Someone please help > Using the Expanse Theme.
*NB: Also on mobile some are pushing out to 4 lines of text downwards which makes it look quite ahem....**bleep**!
Many thanks in advance,
Simon.
Solved! Go to the solution
This is an accepted solution.
Oh, Apple strikes again. It's a norm for things to work perfectly everywhere else except for Safari on Mac or iOS. It's a nightmare honestly.
Try this code and it should work on all platforms.
Option 1:
<style>
.grid-item__content .grid-item__meta {
height: 100% !important;
display: flex !important;
flex-direction: column !important;
justify-content: space-between !important;
}
.grid-item__meta-secondary {
height: fit-content !important;
flex: none !important;
margin: 0 !important;
}
span.shopify-product-reviews-badge {
display: none !important;
}
a.grid-item__link {
height: 100% !important;
display: flex !important;
flex-direction: column !important;
}
.grid-item__meta-main {
height: 100% !important;
display: flex !important;
flex-direction: column !important;
justify-content: space-between !important;
}
.grid-product__title {
height: 100% !important;
}
</style>
Option 2:
<style>
.grid-item__content .grid-item__meta {
height: 100% !important;
display: flex !important;
flex-direction: column !important;
justify-content: space-between !important;
}
.grid-item__meta-secondary {
height: fit-content !important;
flex: none !important;
margin: 0 !important;
}
span.shopify-product-reviews-badge {
display: none !important;
}
a.grid-item__link {
height: 100% !important;
display: flex !important;
flex-direction: column !important;
}
</style>
Hey @sycomsimon,
Can you share the link to your store please?
no can do is a customer/friends store unfortunately and they would not like that.... What do you need to know /screenshot and i can get anything like that for you 🙂 Thanks
Well, I need to go to the webpage and inspect to see what can be changed. Basically, I have to test it live. I guess I won't be able to help then.
Thanks i appreciate you and here's the link because i understand the inspect aspect 😉 This is for the collections but in reality want to make it a default for all product pages ideally please.
Most grateful 🙂 Thank you.
https://www.tslskincare.com.au/collections/mothers-day-gifts
Hey @sycomsimon,
I'm not sure which option you want, so I'll add both anyway.
Option 1: Align from review onwards.
Option 2: Align price only
Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Below the tag "<head>" tag paste the following. Screenshot attached for reference.
Option 1:
<style>
.grid-item__content .grid-item__meta {
height: 100% !important;
display: flex !important;
flex-direction: column !important;
justify-content: space-between !important;
}
.grid-item__meta-secondary {
height: fit-content !important;
flex: none !important;
margin: 0 !important;
}
span.shopify-product-reviews-badge {
display: none !important;
}
.grid-item__content {
height: -webkit-fill-available !important;
}
a.grid-item__link {
height: 100% !important;
display: flex !important;
flex-direction: column !important;
}
.grid-item__meta-main {
height: 100% !important;
display: flex !important;
flex-direction: column !important;
justify-content: space-between !important;
}
.grid-product__title {
height: 100% !important;
}
</style>
Option 2:
<style>
.grid-item__content .grid-item__meta {
height: 100% !important;
display: flex !important;
flex-direction: column !important;
justify-content: space-between !important;
}
.grid-item__meta-secondary {
height: fit-content !important;
flex: none !important;
margin: 0 !important;
}
span.shopify-product-reviews-badge {
display: none !important;
}
.grid-item__content {
height: -webkit-fill-available !important;
}
a.grid-item__link {
height: 100% !important;
display: flex !important;
flex-direction: column !important;
}
</style>
Screenshot is for reference only, the correct code to paste is the one shown above.
So both 'worked' however when i tested it on Mobile it made the container/boxes very long. see attached pic 🙂 Thanks
Is there anything to make it dynamic so that it doesn't reach that length please?
Also added in another pic showing heights after code removed and back to 'original' state
Appreciate your help 🙂
This is an accepted solution.
Oh, Apple strikes again. It's a norm for things to work perfectly everywhere else except for Safari on Mac or iOS. It's a nightmare honestly.
Try this code and it should work on all platforms.
Option 1:
<style>
.grid-item__content .grid-item__meta {
height: 100% !important;
display: flex !important;
flex-direction: column !important;
justify-content: space-between !important;
}
.grid-item__meta-secondary {
height: fit-content !important;
flex: none !important;
margin: 0 !important;
}
span.shopify-product-reviews-badge {
display: none !important;
}
a.grid-item__link {
height: 100% !important;
display: flex !important;
flex-direction: column !important;
}
.grid-item__meta-main {
height: 100% !important;
display: flex !important;
flex-direction: column !important;
justify-content: space-between !important;
}
.grid-product__title {
height: 100% !important;
}
</style>
Option 2:
<style>
.grid-item__content .grid-item__meta {
height: 100% !important;
display: flex !important;
flex-direction: column !important;
justify-content: space-between !important;
}
.grid-item__meta-secondary {
height: fit-content !important;
flex: none !important;
margin: 0 !important;
}
span.shopify-product-reviews-badge {
display: none !important;
}
a.grid-item__link {
height: 100% !important;
display: flex !important;
flex-direction: column !important;
}
</style>
@sycomsimon Hello,
Hope you are doing well
could you please share your store URL so can check and guide you accordingly?
In Canada, payment processors, like those that provide payment processing services t...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025