Slide images are too small in mobile ...can i use different sizes for images to mobile and desktop?

Slide images are too small in mobile ...can i use different sizes for images to mobile and desktop?

billybong
Tourist
5 0 1

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

Replies 7 (7)

websensepro
Shopify Partner
1895 228 269

Hi @billybong  , kindly provide your store URL please and if it is password protected, please share the password as well. Thanks

Need a Shopify developer? Hire us at WebSensePro For Shopify Design Changes/Coding
For Free Tutorials Subscribe to our youtube
Get More Sales Using Big Bulk Discount APP
Create Your Shopify Store For Just 1$/Month
Get More Sales Using Big Bulk Discount APP
billybong
Tourist
5 0 1
websensepro
Shopify Partner
1895 228 269

@billybong

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.css / based.css file and paste the code in the bottom of the file.

 

 

@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:

websensepro_0-1736163663966.png

websensepro_1-1736163867882.png

 

 

 

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!

 

Need a Shopify developer? Hire us at WebSensePro For Shopify Design Changes/Coding
For Free Tutorials Subscribe to our youtube
Get More Sales Using Big Bulk Discount APP
Create Your Shopify Store For Just 1$/Month
Get More Sales Using Big Bulk Discount APP
billybong
Tourist
5 0 1

Hi thnx for ur help but I'm beginner this looks too stretched ..can u help me 

1000232882.jpg

websensepro
Shopify Partner
1895 228 269

@billybong 

Bro, this will happen. If I give you advice, your site looks really good. It's better if you don't change it.

Need a Shopify developer? Hire us at WebSensePro For Shopify Design Changes/Coding
For Free Tutorials Subscribe to our youtube
Get More Sales Using Big Bulk Discount APP
Create Your Shopify Store For Just 1$/Month
Get More Sales Using Big Bulk Discount APP

oscprofessional
Shopify Partner
16372 2440 3187

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:

 

1. Using picture tag

 

<picture>
  <!-- Mobile Banner -->
  <source srcset="{{ section.settings.mobile_banner | img_url: '600x600' }}" media="(max-width: 768px)">
  <!-- Desktop Banner -->
  <source srcset="{{ section.settings.desktop_banner | img_url: '1800x800' }}" media="(min-width: 769px)">
</picture>

2. Using srcset 

<img 
  src="{{ section.settings.desktop_banner | img_url: '1200x600' }}" 
  srcset="
    {{ section.settings.mobile_banner | img_url: '600x400' }} 600w, 
    {{ section.settings.tablet_banner | img_url: '900x500' }} 900w, 
    {{ section.settings.desktop_banner | img_url: '1800x800' }} 1800w
  "
  sizes="(max-width: 600px) 100vw, (max-width: 900px) 50vw, 100vw"
  alt="Banner Image">

 

 

Hire us | Pass Core Web Vital | B2B Wholesale Experts | Claim Your Free Website Review |
Connect with Us: WhatsApp | Skype: oscprofessionals-87 | Email: pallavi@oscprofessionals.com |
Custom Shopify SolutionsPrivate Apps, Theme Customization & SEO | Digital Marketing |
OSCP Apps: Discount Suite | Wholesale App | Bundle & Upsell | Shipping Discount | and more...

DaisyVo
Shopify Partner
4402 488 581

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!

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