How can I unify my images on the product page?

Solved

How can I unify my images on the product page?

bobylands
Excursionist
49 0 11

Hi

How can I unify the size of the product on the product page? I'd like a rectangle longer on the y axis

 

It keeps moving when the customer select a productimage (2).pngimage (1).png

 

 

I tried this but it didnt work : 

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.

@media screen and (min-width: 750px) {
    .product-media-container {
        /* You can adjust this value according to your preference */
        height: 500px;
    }
    
    .product-media-container .product__media {
        /* This value has to match the above height */
        height: 500px;
    }    
}
Accepted Solution (1)
BSS-TekLabs
Shopify Partner
2401 695 835

This is an accepted solution.

Please replace the above code with this one

@media screen and (min-width: 750px) {
    .product-media-container,
    .product-media-container .product__media,
    .product-media-container .product__media img {
        /* You can adjust this value according to your preference */
        height: 500px !important;
    }
}

Here is the result

BSSTekLabs_0-1722664619632.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 7 (7)

BSS-TekLabs
Shopify Partner
2401 695 835

Hi @bobylands,

Sorry for the delay in replying to your other post. We have come up with a solution (a slight change to the CSS selector).

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.

 

@media screen and (min-width: 750px) {
    .product-media-container {
        /* You can adjust this value according to your preference */
        height: 500px !important;
    }
    
    .product-media-container .product__media img {
        /* This value has to match the above height */
        height: 500px !important;
    }    
}

 

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
bobylands
Excursionist
49 0 11

Hi!

it worked for some but left some images sliced in half (see image)image.png

BSS-TekLabs
Shopify Partner
2401 695 835

This is an accepted solution.

Please replace the above code with this one

@media screen and (min-width: 750px) {
    .product-media-container,
    .product-media-container .product__media,
    .product-media-container .product__media img {
        /* You can adjust this value according to your preference */
        height: 500px !important;
    }
}

Here is the result

BSSTekLabs_0-1722664619632.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
bobylands
Excursionist
49 0 11

Thanks you very much it worked!

Also, how can I add small dot swatches right under each of my product on the collection page? I tried to look online but they all failed.

 

Thanks

BSS-TekLabs
Shopify Partner
2401 695 835

Do you mean it looks like this, a color swatch for choosing a color variant?

BSSTekLabs_0-1722665067640.png

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
BSS-TekLabs
Shopify Partner
2401 695 835

Can you provide us which theme are you using?

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
bobylands
Excursionist
49 0 11

Dawn theme