Jump to content

Product Specific Cropping?

Recommended Posts

Posted

Is it possible to have product-specific cropping? I sell photographic prints & calendars on my store and my portrait prints/calendars are very small, especially on mobile. Is there any magical CSS code that can change the crop on portrait thumbnails on the product page for mobile especially?

https://www.peterotoole.ie

Thanks as always!

IMG_0066.PNG

IMG_0092.PNG

  • Replies 8
  • Views 1.5k
  • Created
  • Last Reply

Top Posters In This Topic

Posted

You can edit Product > Additional Info > Add a Code Block > Paste this code

<style>
  @media screen and (max-width:767px) {
  .tweak-product-basic-item-gallery-aspect-ratio-11-square .ProductItem-gallery-slides:before {
    padding-bottom: 150% !important;
}
  }
</style>

If it works, I will give rule for other products

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!)

Posted
4 hours ago, tuanphan said:

You can edit Product > Additional Info > Add a Code Block > Paste this code

<style>
  @media screen and (max-width:767px) {
  .tweak-product-basic-item-gallery-aspect-ratio-11-square .ProductItem-gallery-slides:before {
    padding-bottom: 150% !important;
}
  }
</style>

If it works, I will give rule for other products

Hi there, tried that but it doesn't work i'm afraid 😞

Screenshot 2023-10-15 at 11.44.29 a.m..png

Posted
On 10/19/2023 at 12:04 AM, niteshifte said:

sorry i accidentally marked it as the solution! When i leave the code there, it's visible to customers as you can see below. Maybe i'm doing something wrong if it's visible?

Screenshot 2023-10-18 at 6.03.08 p.m..png

There is an option Show code or something similar above Code Block message box, you uncheck that option, If you can't find that option, can you take a screenshot of your Code Block? I can guide you easier

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!)

Posted
23 hours ago, tuanphan said:

There is an option Show code or something similar above Code Block message box, you uncheck that option, If you can't find that option, can you take a screenshot of your Code Block? I can guide you easier

I actually realised I was pasting the code and changing the type to CSS. when I left it as HTML it works! Thanks so much!

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.