FROM CACHE - fr_header
RÉSOLU

liquid image

Bless10
Touriste
18 0 1

I put an image on the “our products” page and in the desktop version, the image is perfect. However, in the mobile version, the image is cut off. He’re is the code that I put:  <img src="https://cdn.shopify.com/s/files/1/0079/4391/3549/files/Campagne-Moisson-Montreal-FR-ENG-_1.webp?v=16..." alt="" style="max-width : 600px;
max-height : 150px;"

 

 

What should I to do ?

 

Thank you for your help

 

 

Capture liquid image.JPG

 

 

 

 

1 SOLUTION APPROUVÉE
theycallmemakka
Shopify Partner
1501 338 362

Succès.

Hi @Bless10 ,

 

Replace your image tag with bellow image tag. I have added few css to resize it on every screensize.

<img src="//cdn.shopify.com/s/files/1/0079/4391/3549/files/Campagne-Moisson-Montreal-FR-ENG.webp?v=1699230527" alt="" style="width: 100%;height: auto;object-fit: cover;aspect-ratio: auto;">

 

If you require further help to optimize your store, please don't hesitate to reach out. If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!

 

Best Regards,
Makka

Buy me a Coffee


Enjoy Shopify for $1. Sign up now


For quick response - Message Me


Ping me at: theycallmemakka@gmail.com

Voir la solution dans l'envoi d'origine

5 RÉPONSES 5

theycallmemakka
Shopify Partner
1501 338 362

can you provide link to your store?

Buy me a Coffee


Enjoy Shopify for $1. Sign up now


For quick response - Message Me


Ping me at: theycallmemakka@gmail.com

Bless10
Touriste
18 0 1
theycallmemakka
Shopify Partner
1501 338 362

Succès.

Hi @Bless10 ,

 

Replace your image tag with bellow image tag. I have added few css to resize it on every screensize.

<img src="//cdn.shopify.com/s/files/1/0079/4391/3549/files/Campagne-Moisson-Montreal-FR-ENG.webp?v=1699230527" alt="" style="width: 100%;height: auto;object-fit: cover;aspect-ratio: auto;">

 

If you require further help to optimize your store, please don't hesitate to reach out. If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!

 

Best Regards,
Makka

Buy me a Coffee


Enjoy Shopify for $1. Sign up now


For quick response - Message Me


Ping me at: theycallmemakka@gmail.com

theycallmemakka
Shopify Partner
1501 338 362

Hi @Bless10 ,

 

Seems like you have incorporated the updated code that I suggested and have fixed the issue. As my assistance was beneficial, please remember to 'Like' it and mark it as the solution!

 

Best Regards,
Makka

Buy me a Coffee


Enjoy Shopify for $1. Sign up now


For quick response - Message Me


Ping me at: theycallmemakka@gmail.com

Bless10
Touriste
18 0 1

Yes my problem is solved!

Thank you very much