Hello. Most of my images on collection pages are consistent, but occasionally I get one that really sticks out. See my example below.
I have tried resizing the image within the product page but that does not have any noticeable change other than the image gets a little blurrier.
I'm using the Simple theme and I've been searching around about how to correct his with no luck. I would rather not pay for a plugin to do this. This should be possible without the need for a plugin.
Any help would be appreciated. Thank you.
Solved! Go to the solution
Hello, @RagtagChris
Welcome to the Shopify community!
and Thanks for your Good question.
Please share your site URL,
So I will check and provide a solution here.
This is an accepted solution.
1. Go to Online Store->Theme->Edit code
2. Asset->/theme.scss.liquid->paste below code at the bottom of the file.
.product__image-wrapper {
height: 180px;
overflow: hidden;
padding: 0 !important;
.product__image {
height: 100%;
object-fit: contain;
}
}
Thanks for update and your compliment.
I just used this on my store and it worked perfectly too. I'm shocked. It's perfect. I thought it was too good to be true. Thank you so much!
Thanks for your feedback
User | Count |
---|---|
418 | |
206 | |
144 | |
53 | |
42 |