Slide images are too small in mobile …and too big in desktop…can i use different sizes for images to mobile and desktop?
pls help
Slide images are too small in mobile …and too big in desktop…can i use different sizes for images to mobile and desktop?
pls help
Hi @billybong , kindly provide your store URL please and if it is password protected, please share the password as well. Thanks
Hi @billybong ,
Yes, you can use different image sizes for mobile and desktop views in Shopify! This can be achieved by implementing Shopify’s Liquid code to serve different image sizes based on the user’s device. Here’s how you can do it:
@media(max-width:990px){
.owl-carousel {
height: 66vh !important;
}
.owl-carousel.owl-drag .owl-item .item img {
height: 66vh !important;
object-fit: fill;
}
}
@media(min-width:991px){
.owl-carousel.owl-drag .owl-item .item img {
height: 90vh !important;
}
}
Result:
If my reply is helpful, kindly click like and mark it as an accepted solution.
If you are happy with my help, you can help me buy a COFFEE
Thanks!
Bro, this will happen. If I give you advice, your site looks really good. It’s better if you don’t change it.
Hi @billybong
You should consider using a different image. For desktop, it is recommended to select images with a 16:9 aspect ratio (16 units wide and 9 units tall).
For mobile, the opposite is preferable to ensure better visibility.
Let me know if you need further assistance!