Hey looking to understand how to eliminate the white space between my product name and price.
Topic summary
A Shopify store owner sought help removing excess white space between product names and prices on their collection page product cards.
Solution provided:
- Navigate to Shopify Admin > Online Store > Theme > Customize > Theme Settings > Custom CSS
- Add custom CSS code targeting
.card__metadata.pricewithmargin-top: 0 !important;and.card__title.caption awithmin-height: unset !important;
Resolution process:
- Initial code suggestion didn’t work when the user first attempted it
- After troubleshooting with a screenshot of the implementation, the support provider added the code directly and confirmed it worked
- Before/after screenshots demonstrated successful white space removal
- Issue was resolved, with the store owner expressing satisfaction with the outcome
To complete your requests, please follow these steps:
- Go to Shopify Admin > Online Store > Theme > Customize > Theme Settings > Custom CSS https://prnt.sc/i8ljAMlHJUKl
- Paste the code provided into the Custom CSS section.
.card__metadata .price {
margin-top: 0 !important;
}
Here is the result: https://prnt.sc/LSbgcWUf1hDm
I hope this helps
Best,
Daisy
Hi Daisy,
Thanks for your response. Unfortunately this didn’t make any changes. Is there another place I should try pacing the code snip? In on of the files in the code?
Could you please share a screenshot of the code you added to your CSS? This will help me double - check if there are any errors.
Best regards,
Daisy
I have added the code from my end, and it seems to be working fine.
.card__metadata .price {
margin-top: 0 !important;
}
a.card__title.caption {
min-height: unset !important;
}
Could you please add the code above to confirm if it meets your requirements?
Best regards,
Daisy
Amazing thank you so much. Let me know what I can do to reciprocate!

