Shopify themes, liquid, logos, and UX
Hi,
I am currently on Dawn 7.0 and would like to upgrade to 9. I have downloaded the theme and I am unable to add padding to my non square images to prevent them being cropped.
I currently have this setup on my working site:
This is the link to the updated Dawn theme and how the images are showing, as you can see they are being cropped to a square rather than keeping the original ratio and having padding added in:
https://80jalsy4d1up5f3t-19218055.shopifypreview.com
Cheers.
.grid__image {
object-fit: contain;
object-position: center;
}
Thanks for the reply, I do not have a theme.scss.liquid file. I tried placing in the base.css file however this did not work.
Thanks for the hints here, this ended up working for but with a different css selector (maybe the name has changed in more recent template code?):
.card__media .media img {
height: 100%;
object-fit: contain;
object-position: center center;
width: 100%;
}
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025