Change Aspect Ratio for Product Photos in Dawn Theme

Change Aspect Ratio for Product Photos in Dawn Theme

Will_HoneyBrook
Tourist
5 0 1

I've just discovered that my product photos are the optimum aspect ratio for viewing on mobile devices.  All of my product photos are 9:16 which is fine until you click on an image to see it larger; then the image is cropped.

 

How do I change the aspect ratio to 1:1?  I'm running Dawn v. 15.2.0. My website address is HoneyBrookTools.com

Replies 5 (5)

CodingFifty
Shopify Partner
913 136 166

Hi @Will_HoneyBrook,

Go to Online Store, then Theme, and select Edit Code.
Search for base.css/theme.css/style.css/main.css/custom.css file Add the provided code at the end of the file.

@media (max-width: 768px){
.product-media-modal__content .global-media-settings {
    object-fit: cover !important;
    width: 100% !important;
}
}
Coding Fifty || Shopify Partner
For any custom section queries, please visit: Fiverr Profile
Found my response useful? Like it and mark as Accepted Solution!
For additional discussions, reach out via: Email ID: codingfifty@gmail.com
Will_HoneyBrook
Tourist
5 0 1

Hi-

When I go to theme settings the only thing I see is "Custom CSS" and the code there is:

1.      .card. {

               border:radius 30px

          }

Is this where I should insert the code you provided?

SafeerAhmed
Excursionist
43 9 11

add this in your base.css or your custom css file
@media screen and (max-width:750px){

img.product__media-item--variant.active{
      width: 100%;
height: auto;
}

}

Safeer Ahmed | Shopify Expert & Developer
Specialist in Shopify Development & Custom Shopify Solutions
Let's connect:safeerahmed23901@gmail.com
If my response helped, give it a like & mark it as a solution!
Will_HoneyBrook
Tourist
5 0 1

Hi-

When I look at the Custom CSS in theme settings I see the following code:

1.      .card. {

               border:radius 30px

          }

Where within this code to a copy the code you provided?  I assume right before .card as that is the only place I can place my cursor.

Thanks!

Will

Dan-From-Ryviu
Shopify Partner
11633 2280 2462

Hi @Will_HoneyBrook 

For products on the collection page, it has the option to change the Image ratio in Sales channels > Online Store > Themes > Customize > Collections > Default collection.

 Screenshot 2025-03-19 at 09.38.57.png

- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...
Sign up now.