Hi,
The size of the collection images are uploaded at a 1:1 ratio. However, when a collection is opened in store, the image ratio changes to 9:16, Is there a way to change the ratio of the pictures to an open collection page to 1:1?
I have included two screen shots to further explain myself.
TIA
- https://postimg.cc/TyhkjfGM
See the screenshot. add new class name here.
- https://postimg.cc/BjnNs4jL
Follow these Steps:
-
Go to Online Store
-
Edit Code
-
Find theme.liquid file
-
Add the following code in the bottom of the file above tag
.new-class-name img {
object-fit: contain !important;
}
Thanks for the reply.
What new class name am I using?
I’m sorry, I don’t know what a class-name is. ?
??
Hi Marketplace, none of those options worked.
I thought it would be easy to keep the 1:1 ratio the images were loaded at.
The images show different on each device, full screen, mobile, desktop.
There is plenty of options to change the width, but not height, which of course give the 1:3 image change when opened, as per original screenshots