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?
Are you ready to take your business to the next level? Look no further than the latest ...
By SarahF_Shopify Apr 15, 2024We’re keeping the ball rolling to make sure you’re always ahead of the game. So buckle ...
By JasonH Apr 8, 2024Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024