Jump to content

Product Image in Cart

Go to solution Solved by paul2009,

Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • 5 months later...
  • Solution
On 7/10/2022 at 11:16 AM, bananaman said:

would anyone know how to change the aspect ratio of product images in the cart? The sides of my product are being cut off to fit the square.

Squarespace have changed the way the cart page is formatted. Some of these changes are very welcome but the changes to the product thumbnail image are a disaster. The images are now cropped to a 1:1 aspect ratio (a square) and they now completely ignore the focal point that has been set! This results in images where essential details are removed.

As a workaround, you can add the following CSS to Design > Custom CSS. You'll need to save the settings and then refresh the browser before the changes will take effect.

/* Remove cropping on cart images */
.cart-row-img {
  background-size: contain!important;
}

Did this help? Please give feedback by clicking an icon below  ⬇️

About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. 
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!
If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.
Improve your online store with our extensions.

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.