Display different slideshow images on desktop and mobile sense theme

Solved

Display different slideshow images on desktop and mobile sense theme

thatshampooshop
Excursionist
32 0 3

Hello there, 

 

Store link: https://thatshampooshop.com/ 

 

Is it possible to display different images for my slideshow banners on mobile and desktop view?

 

Reason being is that for desktop I want to utilise the whole banner space across the screen and place my text container on the left/right while for mobile, my main image would be centralised. 

 

However, I am unable to do if the same image is being used for both mobile and desktop view. 

 

Example

I want my mobile view to look like that:

thatshampooshop_0-1729494220196.png

 

I want my desktop view to look like this:

thatshampooshop_1-1729494398207.png

 

Accepted Solution (1)
Moeed
Shopify Partner
7500 2028 2491

This is an accepted solution.

Hey @thatshampooshop 

 

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 (min-width: 768px) {
section#shopify-section-template--17529872515235__slideshow_cxxViQ {
    display: none !important;
}
}
@media screen and (max-width: 767px) {
section#shopify-section-template--17529872515235__slideshow_4aFa3V {
    display: none !important;
}
}
</style>

RESULT:

Moeed_0-1729501348840.pngMoeed_1-1729501375480.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 6 (6)

Moeed
Shopify Partner
7500 2028 2491

Hey @thatshampooshop 

 

Can you add 2 sections and add desktop image in one and mobile image in another one and then I can provide you a code that will show images as per the device.

 

Best Regards,

Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


thatshampooshop
Excursionist
32 0 3

Hi Moeed, 

 

I have added two sections to add desktop and mobile image but I'm seeing both on my homepage for desktop view now. 

 

Thanks!

Moeed
Shopify Partner
7500 2028 2491

It seems like you have a code added in one of the Custom CSS of one section, can you remove that?

 

Best Regards,

Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


thatshampooshop
Excursionist
32 0 3

Ok, removed.

Moeed
Shopify Partner
7500 2028 2491

This is an accepted solution.

Hey @thatshampooshop 

 

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 (min-width: 768px) {
section#shopify-section-template--17529872515235__slideshow_cxxViQ {
    display: none !important;
}
}
@media screen and (max-width: 767px) {
section#shopify-section-template--17529872515235__slideshow_4aFa3V {
    display: none !important;
}
}
</style>

RESULT:

Moeed_0-1729501348840.pngMoeed_1-1729501375480.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


Dan-From-Ryviu
Shopify Partner
11708 2294 2476

Hi @thatshampooshop 

You can create 2 slideshow sections, one for mobile and one for desktop then add customized CSS code to Custom CSS code for each section

- Mobile section: 

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

- Desktop section

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

Screenshot 2024-10-21 at 14.05.39.png

- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Amazon Products Importer - Import Amazon Products to Dropship in Your Store!
- 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.
- En...
Sign up now.