Shopify themes, liquid, logos, and UX
Hey all, really trying with this one
My theme is cropping my photos of products to a square - making them just look cut off
Is there any way to fit the image to the product, or something?
see attached -
Solved! Go to the solution
This is an accepted solution.
@Dan-From-Ryviu solution is proper. You should try either "Portrait" or even better -- "Adapt".
Also -- avoid editing theme code -- this will make your theme updates problematic.
If Dan's solution does not work for you, you can instead add the following code to the section's "Custom CSS" setting or "Theme Settings"=> "Custom CSS":
.card--media, .card--media> * {
--ratio-percent: 150% !important;
}
And replace 150 with whatever better fits your images.
Edit the height o your products photos in the products display section.
Recom: desktop - 500
mobile - 250
Did you get it resolved?
Hi @IronAffinity , can you share store url?
https://ironaffinity.com.au/collections/hoodies-w
This is the particular collection im refering to right now - currently editing the other model photos for the other collections..
Hi @IronAffinity
You can try to follow this step
Step 1: Go to Edit code
Step 2: Find file base.css and add this code at the end of the file
img.motion-reduce {
object-fit: contain !important;
}
Result
Best,
DaisyVo
is there a way to do this and maintain the soft curved edges/corners?
The Dawn theme has an option to change images in the product card to portrait. You can see it from store admin > Sales channels > Online store > Themes > Customize > click Homepage dropdown > Collections > open collection template > product grid > Image ratio
- Helpful? Like & Accept solution! - Support me? Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
This is an accepted solution.
@Dan-From-Ryviu solution is proper. You should try either "Portrait" or even better -- "Adapt".
Also -- avoid editing theme code -- this will make your theme updates problematic.
If Dan's solution does not work for you, you can instead add the following code to the section's "Custom CSS" setting or "Theme Settings"=> "Custom CSS":
.card--media, .card--media> * {
--ratio-percent: 150% !important;
}
And replace 150 with whatever better fits your images.
Yessss this is exactly what i wanted!! thank you so much
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025