Slide image sizing changes from desktop to mobile

Solved

Slide image sizing changes from desktop to mobile

smilelab
Tourist
3 0 2

I have some images in a slideshow on my page and when you go from desktop to mobile, the size changes and the image doesn’t adjust to the change. Which is so weird to me. How do I adjust this, because most people shop on their phones over their desktop. 
https://smilelabapparel.store/

Accepted Solution (1)

Moeed
Shopify Partner
6963 1878 2295

This is an accepted solution.

Hey @smilelab 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
@media screen and (max-width: 767px) {
.slideshow__media.banner__media.media img {
    object-fit: contain !important;
    background: white !important;
}
}
</style>

RESULT:

Moeed_0-1740857048152.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


View solution in original post

Replies 3 (3)

Moeed
Shopify Partner
6963 1878 2295

This is an accepted solution.

Hey @smilelab 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
@media screen and (max-width: 767px) {
.slideshow__media.banner__media.media img {
    object-fit: contain !important;
    background: white !important;
}
}
</style>

RESULT:

Moeed_0-1740857048152.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


smilelab
Tourist
3 0 2

Thank you so much, Moeed! It worked!! 🫶🏽

Moeed
Shopify Partner
6963 1878 2295

Thank you for your reply. I'm glad to hear that the solution worked well for you. If you require any more help, please don't hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications