Jump to content

Customising Product-page image ratios for desktop and mobile.

Recommended Posts

  • Replies 4
  • Views 337
  • Created
  • Last Reply
1 hour ago, practice said:

Site URL: http://practice.cat

Hi everyone,

I would like to display the images of our products with a landscape 16:9 ratio crop on desktop, but on mobile want it to switch to 3:4 vertical crop. Essentially choosing different ratios for mobile and desktop. Can anybody help me with this?

Screenshot 2021-10-09 at 00.18.33.png

Screenshot 2021-10-09 at 00.18.46.png

Kindly share your direct url to product page

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - Lightbox captions only mode)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 No-code customisations for Squarespace
🚀 Learn how to rank new pages on Google in 48 hours!

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

Link to comment
21 hours ago, practice said:

Try adding to Design > Custom CSS > Then save & reload the site

@media screen and (max-width:767px) {
.tweak-product-basic-item-gallery-aspect-ratio-169-widescreen .ProductItem-gallery-slides:before {
    padding-bottom: 133.3333% !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

Archived

This topic is now archived and is closed to further replies.


×
×
  • 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.