Different image and banner size on desktop and mobile

Solved

Different image and banner size on desktop and mobile

kisslandbeauty_
New Member
10 0 0

I'm trying to create a website that displays different image banner and slide sizes on desktop and mobile. I've designed the desktop view to my liking, but when I switch to mobile view, the top slideshow and two image banners appear too large. How can I adjust these sizes for desktop without affecting the mobile view?

 

www.kisslandbeauty.com

Accepted Solution (1)
Moeed
Shopify Partner
7687 2067 2548

This is an accepted solution.

Hey @kisslandbeauty_ 

 

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 {
    height: 240px !important;
}
.banner__content {
    display: none !important;
}
}
</style>

RESULT:

Moeed_0-1731399914181.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 14 (14)

Moeed
Shopify Partner
7687 2067 2548

Hey @kisslandbeauty_ 

 

Your store is password protected, can you share the password as well?

 

Best Regards,

Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


kisslandbeauty_
New Member
10 0 0

pass: dausaw

Moeed
Shopify Partner
7687 2067 2548

This is an accepted solution.

Hey @kisslandbeauty_ 

 

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 {
    height: 240px !important;
}
.banner__content {
    display: none !important;
}
}
</style>

RESULT:

Moeed_0-1731399914181.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


kisslandbeauty_
New Member
10 0 0

Screenshot 2024-11-12 at 2.30.56 PM.png

So it doesn't work or not sure but its a slideshow not the banner section

kisslandbeauty_
New Member
10 0 0

It worked thanks!

Moeed
Shopify Partner
7687 2067 2548

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


DaisyVo
Shopify Partner
4460 499 594

Hi @kisslandbeauty_ 

 

Could you please share the store password with me? 

 

Screenshot_1.png

Thank you!

 

Best,

Daisy - Avada Support Team.

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
kisslandbeauty_
New Member
10 0 0

password: dausaw

Dan-From-Ryviu
Shopify Partner
11931 2340 2515

Hi @kisslandbeauty_ 

Please create 2 Image banner sections, then add this code to Custom CSS of each section. 

  • Add this code to a desktop section so it will hide on mobile. 

 

@media (max-width: 749px) {
.banner { display: none; }
}​

 

  • Add this code to Custom CSS of section for mobile 

 

@media (min-width: 750px) {
.banner { display: none; }
}​

 

- Helpful? Like & Accept solution! - Support me? Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

kisslandbeauty_
New Member
10 0 0

Tried adding it but it gave me an error. Where exactly would I apply this at?

 

kisslandbeauty_
New Member
10 0 0

when I apply that it removes the banner

Dan-From-Ryviu
Shopify Partner
11931 2340 2515

Create 2 image banner sections and add CSS code to Custom CSS of each section Screenshot 2024-11-12 at 15.30.29.png

- Helpful? Like & Accept solution! - Support me? Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

kisslandbeauty_
New Member
10 0 0

Screenshot 2024-11-12 at 2.30.56 PM.png

what if its a slide show banner because it still doesn't work

Dan-From-Ryviu
Shopify Partner
11931 2340 2515

Please use those codes for the slideshow

  • Mobile section 

 

@media (min-width: 750px) {
slideshow-component { display: none; }
}​

 

  • Desktop section 

 

@media (max-width: 749px) {
slideshow-component { display: none; }
}​

 

 

- Helpful? Like & Accept solution! - Support me? Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.