Re: resize images for mobile and desktop

resize images for mobile and desktop

kakajdiaz
Tourist
12 0 3

Whenever I transfer to mobile view, my banner image is always cropped. But, its alright with my desktop view. I would like to fix this. Please help.

 

https://katinteriors.net

Replies 4 (4)

GTLOfficial
Shopify Partner
475 95 90

Hello @kakajdiaz 
Go to online store ---------> themes --------------> actions ------> edit code------->Theme.css

add this code at the end of the file.

@media only screen and (max-width: 800px) {
#shopify-section-slideshow img, .index-slideshow-section img {
height: 240px;
}
}

 and the result will be
1.png

If this was helpful, hit the like button and mark the job as completed.
Thanks

- Buy me a Pizza
- If helpful then please Like and Accept Solution.
- Want to modify or custom changes or bug fix on the store Hire me. GTL web solutions
- Want Complete Storefront: Send an email ⇨- Email: info@gtlofficial.com - Skype: ritesh_27dh
kakajdiaz
Tourist
12 0 3

I cant find theme.css .. only this one:

kakajdiaz_0-1721839994771.png

 

oscprofessional
Shopify Partner
16115 2409 3121

Hello @kakajdiaz 
I have checked your problem, you can create separate images for mobile view and desktop view, this will be a proper solution for this.
Please check the Reference below

oscprofessional_0-1721813618365.png

 

Get pass your Store Core Web Vital Free Speed Optimization Audit, Chat on WhatsApp | Skype : oscprofessionals-87 | Email: pallavi@oscprofessionals.com | Hire us | Guaranteed Site Speed Optimization | Website Free Audit | Shopify Theme Customization | Build Shopify Private App | Shopify SEO | Digital Marketing | Oscp Upsell & Cross sell App : Free | Oscp Sales & Volume Discount App : Free | Custom Pricing Wholesale App : Free
kakajdiaz
Tourist
12 0 3

Is that the only solution that we can do?