We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

How can i make dawn theme show rectangular photos into a 1:1 side photo ?

Solved

How can i make dawn theme show rectangular photos into a 1:1 side photo ?

tudor3
Tourist
9 0 0

There is this setting i need, for product images to be shown correctly. The problem is i have a lot of 2x4 or 4x2 images, and dawn theme does not support showing as a 4x4 a 2x4 photo. I need the values that i should enter in theme settings. Many thanks ! 

Accepted Solution (1)
Ahmad31
Shopify Partner
224 21 37

This is an accepted solution.

@tudor3 if you want anytype of help regarding products issues or any other custom development work i am available for your help,  let's fix your problem
also paste this code in previous <style> tag which i provide you recently :

Ahmad31_0-1736534609497.png

 

 

 

 

.card.card--card.card--media.color-scheme-2.gradient img {
width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: auto; /* Centers the image within the container */
}

 

 

 

Love my work? Buy Me A Coffee
Hire Me: Email me Or Chat on Whatsapp
If you found my solution helpful, please like and accept it. Your support is greatly appreciated!

View solution in original post

Replies 15 (15)

DaisyVo
Shopify Partner
4469 501 599

Hi @tudor3 

 

Please share your store link and point out where the image

 

Best,

 

Daisy

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
tudor3
Tourist
9 0 0

Screenshot (204).pngScreenshot (202).pngScreenshot (203).png

DaisyVo
Shopify Partner
4469 501 599

HI @tudor3 

 

Please share your store link please

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
tudor3
Tourist
9 0 0

Ahmad31
Shopify Partner
224 21 37

Hi @tudor3 in theme.css paste this code and save : 

.product-card__image, .media > img {
object-fit: contain;
width: 100%;
height: auto;
}

if you don't find theme.css paste this code in theme.liquid before </head> tag 

<style> 

.product-card__image, .media > img {
object-fit: contain;
width: 100%;
height: auto;
}

</style>

Love my work? Buy Me A Coffee
Hire Me: Email me Or Chat on Whatsapp
If you found my solution helpful, please like and accept it. Your support is greatly appreciated!
tudor3
Tourist
9 0 0

Thanks! Tried, but didnt work . i dont have theme.css because i use dawn theme

 

 

 

 

ss 205.png

tudor3
Tourist
9 0 0

wait, its before </head> . wait a minute i try again 

tudor3
Tourist
9 0 0

It didnt work either. Product cards still show cut photos and now also banner  from front page looks messed up 

Ahmad31
Shopify Partner
224 21 37

Hi @tudor3 you want like this ?

Ahmad31_0-1736525634315.png

paste this code in theme.liquid before </head> tag 

<style>

.card.card--card.card--media.color-scheme-1.gradient img { width: 100%; height: 100%; object-fit: contain; display: block; margin: auto; /* Centers the image within the container */ }

</style>

Love my work? Buy Me A Coffee
Hire Me: Email me Or Chat on Whatsapp
If you found my solution helpful, please like and accept it. Your support is greatly appreciated!
tudor3
Tourist
9 0 0

Great, this works for the collection images. I also need for products to display correctly inside the collection itself 

 

https://sefira.ro/collections/topoare

Ahmad31
Shopify Partner
224 21 37

Also you have some products with white backgroud use png images without backgroud they make a better UI. make product image dimensions 600*600 and also remove their backgrounds.

Love my work? Buy Me A Coffee
Hire Me: Email me Or Chat on Whatsapp
If you found my solution helpful, please like and accept it. Your support is greatly appreciated!
tudor3
Tourist
9 0 0

Well, that is the problem. I have about 30k product photos, i cant edit them in bulk, i dont know how. Manual edit will take ages. Sizes vary a lot. When i used enterprise or ignite theme as theme trial, they have a setting that allows the products to appear OK ss 207.pngss 206.png

Ahmad31
Shopify Partner
224 21 37

This is an accepted solution.

@tudor3 if you want anytype of help regarding products issues or any other custom development work i am available for your help,  let's fix your problem
also paste this code in previous <style> tag which i provide you recently :

Ahmad31_0-1736534609497.png

 

 

 

 

.card.card--card.card--media.color-scheme-2.gradient img {
width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: auto; /* Centers the image within the container */
}

 

 

 

Love my work? Buy Me A Coffee
Hire Me: Email me Or Chat on Whatsapp
If you found my solution helpful, please like and accept it. Your support is greatly appreciated!
tudor3
Tourist
9 0 0

i cant believe my eyes it worked !!!! omgg so many thanks!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Ahmad31
Shopify Partner
224 21 37

@tudor3 

That's fantastic to hear! I'm thrilled that the solution worked perfectly for you! 😊

If you'd like to show your appreciation and "buy me a coffee," it would absolutely make my day!

Love my work? Buy Me A Coffee
Hire Me: Email me Or Chat on Whatsapp
If you found my solution helpful, please like and accept it. Your support is greatly appreciated!