Jump to content

Why are my product images so tiny and related products pictures are HUGE?

Recommended Posts

Try adding to Design > Custom CSS
 

@media screen and (max-width:767px) {
.ProductItem-gallery-slides-item, section.ProductItem-gallery {
    overflow: visible !important;
    height: auto !important;
}
.ProductItem-gallery-slides:before {
    padding-bottom: 150% !important;
}
img.ProductItem-gallery-slides-item-image {
    object-fit: contain !important;
    height: auto !important;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

@tuanphan Thank you! That was VERY helpful.

I altered the code slightly and this is a HUGE improvement!


@media screen and (max-width:767px) {
.ProductItem-gallery-slides-item, section.ProductItem-gallery {
    overflow: visible !important;
    height: auto !important;
}
.ProductItem-gallery-slides:before {
    padding-bottom: 75% !important;
}
img.ProductItem-gallery-slides-item-image {
    object-fit: contain !important;
    height: auto !important;
}
}

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.