What's your biggest current challenge? Have your say in Community Polls along the right column.

How do I make my product variations 2:3 portrait and smaller

Solved

How do I make my product variations 2:3 portrait and smaller

jehadz15
Tourist
4 0 3

Capture.PNG

 

MY STORE How do I make it 2:3 instead of those big boxes please help !! and thank you

Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
9133 2180 2688

This is an accepted solution.

Hi @jehadz15 

The curent size of the Variant Image are 60x60. 

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:

 

.media-swatch {
    width: 50px;
    height: 70px;
}

 

And Save. 

Result:

Made4uoRibe_0-1704901453602.png

If its not working, you add !important.

 

.media-swatch {
    width: 50px !important;
    height: 70px !important;
}

 

And Save. 

 

 

 

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 ⚙️.

View solution in original post

Replies 5 (5)

kevinkarma55
Shopify Partner
101 11 11

do you mean two image in row? like this?

x x

x x

x x

x x

x

Please remember to Like & Mark Solution to the post if it helped you.
Thanks !
If you'd like to support me, you can Buy Me a Coffee
Need help with anything related to Frontend?
Checkout kevinkarma.me
jehadz15
Tourist
4 0 3

Capture.PNG

No sir, I want each variant to not be a 1:1 square but a 2:3 portrait and also smaller! thank you

kevinkarma55
Shopify Partner
101 11 11

smaller will allow more item in each row and will shortage height of the container, how about this: I adjust width from 60px to 40px and made 2:3 ratio

kevinkarma55_0-1704901582997.png

 

Please remember to Like & Mark Solution to the post if it helped you.
Thanks !
If you'd like to support me, you can Buy Me a Coffee
Need help with anything related to Frontend?
Checkout kevinkarma.me

Made4uo-Ribe
Shopify Partner
9133 2180 2688

This is an accepted solution.

Hi @jehadz15 

The curent size of the Variant Image are 60x60. 

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:

 

.media-swatch {
    width: 50px;
    height: 70px;
}

 

And Save. 

Result:

Made4uoRibe_0-1704901453602.png

If its not working, you add !important.

 

.media-swatch {
    width: 50px !important;
    height: 70px !important;
}

 

And Save. 

 

 

 

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 ⚙️.
jehadz15
Tourist
4 0 3

Thank you so much !