Jump to content

Custom thumbnail crop on Store Page

Recommended Posts

Site URL: https://tulip-helix-jd8r.squarespace.com/katalog

Hi,

We have a store page where all images have the aspect ratio 10:14. When styling the store, the options are either 2:3 or 3:4, which both result in unwanted cropping. Is there any way to keep the original ratio? Using summary blocks is not an option here, as there are to many items to display them. It would take way to much work to manually recreate these images in a different aspect ratio. Thanks for any help!

https://tulip-helix-jd8r.squarespace.com/katalog
password: pass

Link to comment
  • Replies 4
  • Views 715
  • Created
  • Last Reply
  • 2 weeks later...
On 2/3/2021 at 8:03 AM, tuanphan said:

Add to Design > Custom CSS


.products.collection-content-wrapper .grid-item .grid-image-cover {
    object-fit: contain !important;
}

 

Hi @tuanphan, I'm having the same issue. I trie the code you put but it's not working. I use 7.1

I want my photos to be on their original crops, not on the options Squarespace offers as they are all different.

Best,

E

1222039224_Screenshot2021-02-12at11_33_18.png.2e41bc054ba9d2120726d7377b01a248.png

Link to comment
On 2/12/2021 at 11:38 PM, EMRgr said:

Hi @tuanphan, I'm having the same issue. I trie the code you put but it's not working. I use 7.1

I want my photos to be on their original crops, not on the options Squarespace offers as they are all different.

Best,

E

1222039224_Screenshot2021-02-12at11_33_18.png.2e41bc054ba9d2120726d7377b01a248.png

Add to Code Injection > Header

<style>
  .products.collection-content-wrapper .grid-item .grid-image-cover {
    object-fit: contain !important;
}
</style>

 

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.