Hi all,
The images that are displayed in my product page are of different size. How do I make them the same size?
Site url: thechillsmart.com
Issue: Product images display at inconsistent sizes on collection/product pages.
Proposed Solutions:
Multiple users suggested adding CSS code to standardize image heights:
.grid-product__image-mask or .grid-product__image-mask .image-wrap classesheight: 220px or padding-bottom: 100% propertiestheme.scss.css or theme.css.liquid files via Online Store > Theme > Edit Code > AssetsOutcomes:
Current Status: Discussion remains open with unresolved cases. Theme-specific variations appear to affect which solutions work, and mobile responsiveness remains problematic for some implementations.
Hi all,
The images that are displayed in my product page are of different size. How do I make them the same size?
Site url: thechillsmart.com
@Chillsmart you can try this code
Add this css at the bottom
Online Store ->Theme ->Edit code
Assets â theme.scss.css
.grid-product__image-mask {
height: 220px;
}
Hello @Chillsmart
Go to the oneline store > theme > Edit Code >Assets >theme.scss.css >add code in this file.
.grid-product__image-mask .image-wrap {
height: 220px !important;
}
It is still the same ![]()
Hi @Chillsmart
Follow these steps:
.image-wrap {
padding-bottom: 100%;
}
Please let me know if it works.
Hello @Chillsmart
Try this -
Go to the online store > theme > Edit Code >Assets >theme.scss.css >add code in this file.
.grid-product__image-mask .image-wrap {
padding-bottom: 100% !important;
}
It worked! Thanks!
Hi,
Is this possible to do with the Craft theme?
Mine is still the same
I have boundless on if that helps
I have done with so many stores using the below code
https://doublemarvellous.com/blog/equal-heights-of-elements-with-vanilla-js-in-shopify/
Hello, I am having the same problem with the photos. I was trying to insert that code, but when I reach a certain point, I canât find the âtheme.scss.cssâ. Can you help me, please. I am attaching a pic so I can make sense. Thanks
Thanks for this, but I do not have that option. Here is a screen shot of what I see:
online store > theme > Edit Code >Assets >theme.js is the only option I see. My theme is Ella, if that helps.
Hello Ella,
Thanks for your reply.
I was able to manage the problem with help from a friend.
But thanks!!
Ana
I meant to say I am actually having the same problem, lol! Any insights on how to update within the Ella theme?
Where do you post the code it says in the link? Thanks
Yes its in the link
Hello I have same problem, I added code it helped for computers but it didnt for mobile devices. Do you know why ?
.grid-product__image-mask .image-wrap { padding-bottom: 100% !important; }
Checking in for an Update: have you guys found any solution?
I have the same issues using Habitat
Hi, I tried this and it didnât work unfortunately. Can you advise where I can find the line of code now to remove it? Thanks