Have your say in Community Polls: What was/is your greatest motivation to start your own business?

How to make all product images the same size eg square

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
9094 2173 2683

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!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.
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
9094 2173 2683

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!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.

Artzen_tech
Shopify Partner
552 113 112

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

BSSCommerce-HDL
Shopify Partner
2305 834 908

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

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

EmmaLILI
Tourist
16 0 2

https://www.loveitloanit.nz

 

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

BSSCommerce-HDL
Shopify Partner
2305 834 908

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

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now