Shopify themes, liquid, logos, and UX
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
I would like to align the price of all products in a collection page
as you can see in image below each price (in yellow) are at a different high and esthetically it looks wrong
I am aware that probably this could be solved by using shorter product titles ocupaying only two lines of text but this is not the optimal solution because in some cases i need to have longer product titles
happy to hear your recommendations. I already aligned all images by having same size images but this request is about the product titles
Solved! Go to the solution
This is an accepted solution.
Hello @JaimePerez
You can follow these steps:
1. Go to Online Store->Theme->Edit code
2. Open your theme.liquid file, paste the below code before </body>
<style>
.template-collection .shop-product-wrap.grid-3 ul.product-view li.st-col-item {
display: flex;
}
.template-collection .shop-product-wrap.grid-3 ul.product-view li.st-col-item .single-product-wrap {
flex: 1;
display: flex;
flex-direction: column;
}
.template-collection .shop-product-wrap.grid-3 ul.product-view li.st-col-item .single-product-wrap .product-image {
flex: 0;
}
.template-collection .shop-product-wrap.grid-3 ul.product-view li.st-col-item .single-product-wrap .product-content {
flex: 1;
}
.template-collection .shop-product-wrap.grid-3 ul.product-view li.st-col-item .single-product-wrap .product-content .product-title {
flex: 1;
}
</style>
I hope the above is useful to you.
Kind & Best regards,
GemPages Support Team
Hello @JaimePerez
Can you give me your Store URL( with pass if your store password is enabled) so I can check it for you?
Kind & Best regards,
GemPages Support Team
Hi @JaimePerez
This is Victor from PageFly - Shopify Page Builder App
Please add this code to your theme.liquid above the </head> to get this solved
Step 1: Online Stores > Themes > More Actions > Edit code
Step 2: click on theme.liquid and paste the code above the </head>
<style>
.single-product-wrap {
display: flex;
flex-direction: column;
}
</style>
It will look like this when you add the code :
Hope this can help you solve the issue
Best regards,
Victor | PageFly
This is an accepted solution.
Hello @JaimePerez
You can follow these steps:
1. Go to Online Store->Theme->Edit code
2. Open your theme.liquid file, paste the below code before </body>
<style>
.template-collection .shop-product-wrap.grid-3 ul.product-view li.st-col-item {
display: flex;
}
.template-collection .shop-product-wrap.grid-3 ul.product-view li.st-col-item .single-product-wrap {
flex: 1;
display: flex;
flex-direction: column;
}
.template-collection .shop-product-wrap.grid-3 ul.product-view li.st-col-item .single-product-wrap .product-image {
flex: 0;
}
.template-collection .shop-product-wrap.grid-3 ul.product-view li.st-col-item .single-product-wrap .product-content {
flex: 1;
}
.template-collection .shop-product-wrap.grid-3 ul.product-view li.st-col-item .single-product-wrap .product-content .product-title {
flex: 1;
}
</style>
I hope the above is useful to you.
Kind & Best regards,
GemPages Support Team
Hello,
I am trying to do the same and tried your code, but unfortunately nothing changes. maybe you could helm me out? InvertedPowers.com
Hi @GemPages
I am trying above solution, however it's not working for me. Next to above can you also help me with below
*I'm trying to get the font size of the lister page pricing and product page pricing smaller. Since i want to make the pricing bold, and it's looks very big when current font is bold.
Thanks!