How to make all product images the same size eg square

EmmaLILI
Tourist
16 0 2

Some products have square photos and some have portrait - is there a way I can make them all the same size so it presents better on my website?

 

Thanks!

 

Screen Shot 2024-05-09 at 3.04.42 AM.png

Replies 8 (8)

Made4uo-Ribe
Shopify Partner
5977 1439 1777

Hi @EmmaLILI 

Check this one. 

From your Shopify admin dashboard, click on "Online Store" and then "Themes".

Find the theme that you want to edit and click on "Actions" and then "Edit code".

In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

span.snize-thumbnail img {
    height: 44vh;
}

 

And Save. 

Result:

Made4uoRibe_0-1715182007025.png

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
For FREE, premium codes, and trusted, knowledgeable Shopify developers, visit us at

Made4uo.com


EmmaLILI
Tourist
16 0 2

Hi thank you

 

Unfortunately this has distorted/stretched out the images that were square - is there a way to prevent this

 

Screen Shot 2024-05-09 at 3.29.43 AM.png

Made4uo-Ribe
Shopify Partner
5977 1439 1777

The default height is 300px convert 44vh to px is 352 I only add a bit to make it uniform. You can make it 30vh or 40vh. 

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
For FREE, premium codes, and trusted, knowledgeable Shopify developers, visit us at

Made4uo.com


Artzen_tech
Shopify Partner
536 107 107

Hi @EmmaLILI 
Its Artzen Technologies! We will be happy to help you today.

Instead of adding the height to the images you can use the images of same size to not jeopardize the look and feel of the images.
Or else you can add the css to make the images of same size.

To do this Follow the Below Steps:
1) Go to your Online Store
2) Edit Code
3) Find theme.liquid file or CSS File
4) Add the following CSS at the bottom of the file above </body>

 

 

span.snize-thumbnail img {
    height: 30vh;
}

 

 

 

Let me know if need further assistance
Regards,
Artzen Technologies



If helpful, please Like and Accept this Solution to help others
Artzen Technologies | A Shopify Development Agency
WhatsApp - 9877983930

Book FREE CONSULTATION who want to migrate to Shopify or want to start an eCommerce business with Shopify
EmmaLILI
Tourist
16 0 2

Thanks but this didn't work either

BSSTech-Venture
Shopify Expert
391 96 105

@EmmaLILI 
Can you kindly share your store link (with the password, if any) with us?

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.

For B2B solutions and custom pricing, check out B2B Solution & Custom Pricing |
For adding product labels/badges, visit Product Labels by BSS

BSS Commerce - Shopify Apps & Store Development Service Provider

Hire a Shopify expert | Shopify Plus Store Development

EmmaLILI
Tourist
16 0 2

https://www.loveitloanit.nz

 

Not sure if there is a password but let mw know if there is! Thanks

BSSTech-Venture
Shopify Expert
391 96 105

Hi @EmmaLILI  

You can try this code by following these steps:

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

 

 

Step 2: Search file base.css or theme.css 

Step 3: Insert the below code at the bottom of the file -> Save

#snize-search-results-grid-mode span.snize-thumbnail img {
  object-fit: cover !important;
  height: 100% !important;
}

Result: 

view.png

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.

For B2B solutions and custom pricing, check out B2B Solution & Custom Pricing |
For adding product labels/badges, visit Product Labels by BSS

BSS Commerce - Shopify Apps & Store Development Service Provider

Hire a Shopify expert | Shopify Plus Store Development