Shopify themes, liquid, logos, and UX
Is there a way to add code to make all product thumbnails display as the same size on catalog pages? So for example have all photos display as squares in the below screenshot, but then have the original photos still when you click on the product. I'm trying to avoid having to manually crop all of my photos.
You can rework your code to use background images instead of regular images and then give your container a specified height and width:
https://codepen.io/ninthony/pen/PopPNXd
Or alternatively you can give the images a set width and height with CSS and set the image element's object-fit property to "cover":
https://www.digitalocean.com/community/tutorials/css-cropping-images-object-fit
Where in the liquid file would I implement this code?
User | RANK |
---|---|
157 | |
135 | |
78 | |
70 | |
68 |
Explore the 30-30-30 rule, a dynamic social media strategy for new businesses. Learn how t...
By Trevor Sep 20, 2023Discover how to leverage the often overlooked footer of your ecommerce site to gain custom...
By Skye Sep 15, 2023In this blog, we’ll be shining a light on Shopify Partners, Experts, and Affiliates. Who a...
By Imogen Sep 13, 2023