Jump to content

jschultz300

Circle Member
  • Posts

    4
  • Joined

  • Last visited

Posts posted by jschultz300

  1. image.thumb.png.a206202d7a9420dce37db96c044af562.pngUnfortunately it didn't work, it just cropped to the top (the middle one). Note the image to the far right has had the work around applied where I make the the portrait image into a landscape by adding on transparent borders to the image, but takes a bit of time, would obviously rather automate it. Thanks for trying, if you think of anything else I'll try it out and report back.

  2. On 8/17/2021 at 12:56 PM, kirkroberts said:

    For those working on a 7.0 template in the Brine family this Custom CSS might get you going:

    // product index
    .ProductList-image,
    // product quick view
    .ProductItem-gallery-slides-item-image 
    {
      height: 100% !important;
      left: 0 !important;
      object-fit: contain;
      object-position: center center;
      top: 0 !important;
      width: 100% !important;
    }

    It should make the image take up as much space as possible within your chosen product index image size, without cropping the image at all.

    It also works on the Quick View, if you have that enabled.

    Note that you can adjust the "object-position" to dictate how the not-cropped image aligns in the "box" created by the Styles setting for product index page images.

    What if I wanted to do the same thing to summary block images from a store? So essentially the product images? 

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