Help Needed to Fix Product Image Sizes

Solved

Help Needed to Fix Product Image Sizes

Sheeks
Pathfinder
109 1 16

Hi ^^

I’m experiencing an issue with my store’s product images. My store URL is https://sheeksorority.com/products/halloween-costume-witch-vampire-dress-up-party?_pos=1&_psq=witch&....

The problem I have is that all the product images are inconsistent in size and some are getting cut off. I want the images to be consistent in portrait orientation across both desktop and mobile, ideally filling the entire phone screen. Additionally, the images in my Instafeed are varied in size, which creates a messy appearance. I’m aiming for a more cohesive look, with all images in portrait format and properly sized.

Can anyone help me look into this problem. pls^^

Accepted Solution (1)

BSS-TekLabs
Shopify Partner
2322 688 809

This is an accepted solution.

Hi @Sheeks,

Here are the steps you can follow:

1, Navigate to Online Store > Themes > Edit Code.

2, Locate and open the base.css (or theme.css, custom.css) file.

3, Paste the code snippet provided below at the bottom of the file, then save your changes.

 

.main-product-item .main-product-img .media-box {
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-product-item .main-product-img .media-box img {
    height: 100%;
    width: auto;
    left: inherit;
}

 

Here is the result

BSSTekLabs_0-1725672023751.png

BSSTekLabs_1-1725672040663.png

We hope this assists in resolving the issue.

If you find our solution helpful, kindly consider Liking and Marking it as Accepted. Thank you!

 

 

 

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


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


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

View solution in original post

Replies 2 (2)

BSS-TekLabs
Shopify Partner
2322 688 809

This is an accepted solution.

Hi @Sheeks,

Here are the steps you can follow:

1, Navigate to Online Store > Themes > Edit Code.

2, Locate and open the base.css (or theme.css, custom.css) file.

3, Paste the code snippet provided below at the bottom of the file, then save your changes.

 

.main-product-item .main-product-img .media-box {
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-product-item .main-product-img .media-box img {
    height: 100%;
    width: auto;
    left: inherit;
}

 

Here is the result

BSSTekLabs_0-1725672023751.png

BSSTekLabs_1-1725672040663.png

We hope this assists in resolving the issue.

If you find our solution helpful, kindly consider Liking and Marking it as Accepted. Thank you!

 

 

 

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


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


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

Aww it work fine now. All not cut^^
Can u take a look at this SS - Instafeed section, the pic not same size

Sheeks_0-1725761786697.png

This more worser 😞

Sheeks_1-1725761904242.png

Help me plsss