Shopify themes, liquid, logos, and UX
Hello everyone,
I've been working on setting up my Shopify site and encountered a layout challenge. My product listings are not aligning consistently, primarily due to the varying lengths of product titles. When a product title spans two lines, it causes the product box to become taller compared to adjacent products with single-line titles. I'm trying to achieve a uniform look for all product boxes, regardless of the length of the title.
I understand that setting a minimum height for the product titles could potentially resolve this. However, I'm not entirely sure how to go about it or if there's a better approach. Can anyone guide me through the process or suggest alternative solutions? Any assistance or insights would be greatly appreciated!
Thank you in advance!
Solved! Go to the solution
This is an accepted solution.
Hi @jhghidossi
You can set min-height for your product title by adding this code in your theme.liquid file in Online store > Themes > Edit code before </head> tag
<style>
.product-card .product-card-title { min-height: 45px; }
</style>
- Helpful? Like and Accept solution!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
This is an accepted solution.
Hi @jhghidossi
You can set min-height for your product title by adding this code in your theme.liquid file in Online store > Themes > Edit code before </head> tag
<style>
.product-card .product-card-title { min-height: 45px; }
</style>
- Helpful? Like and Accept solution!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
Hi Dan,
I have the same issue, but the above did not work.
After using the above :
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024