Second Product Image resizing

Solved

Second Product Image resizing

paragon_star
Tourist
4 0 1

Hi,

Can someone tell me what coding I need to do to get all the images on the product page the same size. I've tried a few but none are working e.g. see second image on this page

https://paragonstar.co.uk/products/deep-minder-abomination-resin-miniature-many-size-options-dungeon...

Thanks!

Accepted Solution (1)

BSS-TekLabs
Shopify Partner
2401 695 835

This is an accepted solution.

Hi @paragon_star,

You can follow these steps to make the effect

1. Open Online Store > Theme > Edit Code

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

3. Paste the code snippet below at the bottom of the file and hit save

 

.imgWrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    /* You can change this value to fit your preference */
    height: 550px;
    overflow: hidden;
    background: black;
}

.imgWrapper img {
  width: auto; 
  height: 100%; 
  object-fit: cover;
}

 

Here is the result

BSSTekLabs_0-1720794010333.png

And the best way to make the images look consistent is to make them the same size in the first place.

Hope this helps you solve the issue.

Please don't forget to Like and Mark it as an Accepted Solution if you find this helpful. 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 6 (6)

WalkYourStyle
Navigator
475 58 79

What theme are you using ?

paragon_star
Tourist
4 0 1

Its a customised theme; Vogal version v1.1

paragon_star
Tourist
4 0 1
Its a customised theme; Vogal version v1.1

BSS-TekLabs
Shopify Partner
2401 695 835

This is an accepted solution.

Hi @paragon_star,

You can follow these steps to make the effect

1. Open Online Store > Theme > Edit Code

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

3. Paste the code snippet below at the bottom of the file and hit save

 

.imgWrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    /* You can change this value to fit your preference */
    height: 550px;
    overflow: hidden;
    background: black;
}

.imgWrapper img {
  width: auto; 
  height: 100%; 
  object-fit: cover;
}

 

Here is the result

BSSTekLabs_0-1720794010333.png

And the best way to make the images look consistent is to make them the same size in the first place.

Hope this helps you solve the issue.

Please don't forget to Like and Mark it as an Accepted Solution if you find this helpful. 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
paragon_star
Tourist
4 0 1

Legend, thank you so much 🙂

BSS-TekLabs
Shopify Partner
2401 695 835

You're welcome!
And if you're looking to add custom free gift functionality to your store, you should definitely check out our app, Salepify! It's designed to enhance your sales strategy with features like tiered discounts, cart rewards, and seamless integration with Shopify! 🎁🚀

 

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