Re: Product images cut off on mobile

Product images cut off on mobile

ascended
Excursionist
19 0 2

Hello, on my product page of each product the images get cut off. The first image fits okay, but then the rest of the images are off center, or cut off. It is only like this on mobile. Is there anything I can do to fix this? Thanks

Screenshot 2024-08-02 at 12.50.52 PM.png

Screenshot 2024-08-02 at 12.51.08 PM.png

 store: link

password: first

page: shop all > product(first one)

theme: dawn

Replies 2 (2)

shahrozbabar5
Trailblazer
202 21 25

Hi @ascended, this is a bit code thing, you just need to add custom CSS at the storefront and it will be fixed. the code is below. add it into the products section scroll down and select custom CSS or additional CSS

@media only screen and (max-width: 767px) {
.product-gallery__image-wrapper img {
object-fit: contain; /* or cover depending on your preference */
width: 100%;
height: auto;
}
.product-gallery__image-wrapper {
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
}
}



Need a Shopify Expert and Specialist? Let's chat on WhatsApp and bring your vision to life!


Custom Shopify Store Design | Premium Themes | Variant Apps Expert


Your Coffee Tip and my code, a seamless synergy. ❤️

ascended
Excursionist
19 0 2

Hello, thanks for the help! Unfortunately I already have the max amount of lines for custom css on my product information section. I tried adding to my theme's css files, but it didn't seem to work. Is there anything else I can do?