Jump to content

How do I disable product image cropping on Mobile?

Recommended Posts

Site URL: https://art.charlesstemen.com/

I'm selling photo prints.

On mobile my product images are being cropped on the store, product, and fullscreen preview page in a way where the user will never see the full product. Making white bars on the images that get cropped or putting an duplicate image into the additional info were suggestions I got from Squarespage support - so clunky haha, not what I am looking for... I get and am ok with the cropping on the store / product page, but it seems crazy to me that the fullscreen image would be cropped and not just responsively fit any size image to the width of the screen.

Whats frustrating is that if I switch from desktop to mobile while in the fullscreen image preview, it shows the image uncropped! So I can see it how I want it! But does not do this ever when on mobile/clicking into fullscreen preview from mobile, so not very helpful.

Is there some CSS I can add to remove image cropping on mobile/tablets for the fullscreen preview and potentially the product detail page entirely? Alternating between slideshow/stacked/carousel does not affect mobile appearance, and not seeing any other changes within Squarespace that would address this.  

Ive seen some other threads with similar topics, so maybe this is a lost cause..

Screen Shot 2020-05-19 at 4.27.41 PM.png

Screen Shot 2020-05-19 at 4.31.55 PM.png

Link to comment
  • 4 weeks later...
  • 2 months later...
5 hours ago, Aerdon said:

Can you please share the CSS you used to solve this?  Thanks!

I see this CSS in above site

@media screen and (max-width: 767px) {
    .tweak-product-basic-item-gallery-aspect-ratio-11-square .ProductItem-gallery-slides:before {
        padding-bottom:0
    }

    .ProductItem-gallery-slides-item {
        position: static;
        height: auto;
        overflow: initial
    }

    .ProductItem-gallery-slides-item.selected .ProductItem-gallery-slides-item-image {
        left: 0 !important;
        top: 0 !important;
        width: auto !important;
        height: auto !important;
        max-width: 100%
    }
}

 

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
  • 1 month later...
1 hour ago, thetv said:

I'm having a similar issue with my slideshow gallery on mobile.

http://www.thomvallance.com

Add to Home > Design > Custom CSS

@media screen and (max-width:640px) {
div#block-yui_3_17_2_1_1592935235062_24451 img {
    width: 100% !important;
    left: 0 !important;
    height: auto !important;
}
div#block-yui_3_17_2_1_1592935235062_24451 {height: 200px;}
}

 

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
  • 3 months later...
On 8/30/2020 at 5:29 PM, tuanphan said:

I see this CSS in above site


@media screen and (max-width: 767px) {
    .tweak-product-basic-item-gallery-aspect-ratio-11-square .ProductItem-gallery-slides:before {
        padding-bottom:0
    }

    .ProductItem-gallery-slides-item {
        position: static;
        height: auto;
        overflow: initial
    }

    .ProductItem-gallery-slides-item.selected .ProductItem-gallery-slides-item-image {
        left: 0 !important;
        top: 0 !important;
        width: auto !important;
        height: auto !important;
        max-width: 100%
    }
}

 

I am having the same problem, but this CSS didn't help. Any ideas?

 https://stephenchowphotography.com/shop/p/choi-hung
 

IMG_2159.thumb.PNG.f2652ec7e55981964eed883036773dd2.PNGIMG_2160.thumb.PNG.19f525a37bda3d3ff1c5c636afd9f47d.PNG

Link to comment
23 minutes ago, sjcwallprints said:

Yes I do please!

Try adding to Design > Custom CSS

/* product image mobile cropt */
@media screen and (max-width:767px) {
.gallery-lightbox-item img {
    position: relative;
    object-fit: initial !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
  • 6 months later...
On 8/30/2020 at 9:29 PM, tuanphan said:

I see this CSS in above site

@media screen and (max-width: 767px) {
    .tweak-product-basic-item-gallery-aspect-ratio-11-square .ProductItem-gallery-slides:before {
        padding-bottom:0
    }

    .ProductItem-gallery-slides-item {
        position: static;
        height: auto;
        overflow: initial
    }

    .ProductItem-gallery-slides-item.selected .ProductItem-gallery-slides-item-image {
        left: 0 !important;
        top: 0 !important;
        width: auto !important;
        height: auto !important;
        max-width: 100%
    }
}

 

Hi Tuanphan will this CSS be site wide adjustment? 

Link to comment
10 hours ago, ShortAngryViking said:

Hi Tuanphan will this CSS be site wide adjustment? 

Try this

@media screen and (max-width: 767px) {
    .ProductItem-gallery-slides:before {
        padding-bottom:0
    }

    .ProductItem-gallery-slides-item {
        position: static;
        height: auto;
        overflow: initial
    }

    .ProductItem-gallery-slides-item.selected .ProductItem-gallery-slides-item-image {
        left: 0 !important;
        top: 0 !important;
        width: auto !important;
        height: auto !important;
        max-width: 100%
    }
}

 

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
  • 4 weeks later...
On 9/3/2021 at 12:35 PM, ShortAngryViking said:

@tuanphan I will have to look into this at a later date... just finished the site and realised all of my margins and background full width pages are all looking nasty on mobile. Any help from your extensive knowledge would be graciously honored 

https://ray-cone-ap64.squarespace.com/config/design/

 

Hi,

Disable image cropping or what problem?

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
On 9/4/2021 at 7:39 PM, tuanphan said:

Hi,

Disable image cropping or what problem?

when i view

https://www.studiolucephoto.com/portfolio

on mobile the images are HUGE and I would love them to be cropped small to fit on the mobile screen..unless you recommend leaving the image that size and forcing viewers to rotate the screen. I am open to any ideas? this was meant to be my gallery but it looks like dogs breakfast

Edited by ShortAngryViking
Link to comment
On 9/9/2021 at 8:56 PM, ShortAngryViking said:

when i view

https://www.studiolucephoto.com/portfolio

on mobile the images are HUGE and I would love them to be cropped small to fit on the mobile screen..unless you recommend leaving the image that size and forcing viewers to rotate the screen. I am open to any ideas? this was meant to be my gallery but it looks like dogs breakfast

Hi,

Which plugin did you use to add slideshow? I think we need to tweak it to resize slideshow on mobile

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
  • 1 month later...

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.