Shopify themes, liquid, logos, and UX
Hi. My store sells framed prints. I am trying to show product images within the collection view that reflect the product dimensions and are proportionally correct. i.e. I have varying sizes of the same print and I would like to make it visually obvious to the customer that there are different sizes available. This is how i would like to display my products:
However at the moment, Shopify is forcing the same width for all images. Is there a way via css or liquid to force the native image size to display ? I'm using Dawn theme V11
Thanks for any advice!
Hey @terryohm
Can you share the link to your store please? Thanks!
any luck?
Hey @terryohm,
I have checked and unfortunately, this requires abit of extensive code, one which I can't really bundle up into an instruction set here.
What you could do is to create an empty canvas of the same size for all images and paste the image of the product inside that canvas and resize just the image. Leave the empty spaces as white space. That way when you upload it to the product photo, the whitespace will be considered part of the photo and it will resize according to the canvas.
Like so,
I'll try that workaround. thank you very much for your help with this.
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025