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?
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024