Hi all,
I’d need assistance to change my product page image ratio from landscape to portrait (4:5)
This is my product page
https://www.strapatelier.com/products/curved-lug-silicone-watch-strap
Hi all,
I’d need assistance to change my product page image ratio from landscape to portrait (4:5)
This is my product page
https://www.strapatelier.com/products/curved-lug-silicone-watch-strap
Hello there
To change the product page image ratio from landscape to portrait (4:5) on Shopify, you’ll need to modify the CSS code. Here’s how you can do it:
.product-single__photo-wrapper {
padding-top: 80%; /* Change the percentage value to adjust the height of the image */
}
.product-single__photo {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: contain;
}
This code sets the height of the product image container to 80% of the width, creating a portrait (4:5) aspect ratio. You can adjust the padding-top value to increase or decrease the height of the image
Hi there,
@EcomGraduates Which file should i paste this in?
Hi there,
@EcomGraduates Which file should i paste this in?