Jump to content

Product Specific Cropping?

Go to solution Solved by tuanphan,

Recommended Posts

  • Replies 8
  • Created
  • Last Reply

Top Posters In This Topic

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
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

Link to comment
  • Solution
On 10/15/2023 at 5:46 PM, niteshifte said:

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

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

Can you add & keep Code Block? I can check it again easier

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
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!

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.