Separate Desktop and Mobile Image Banner - Ride Theme

Solved

Separate Desktop and Mobile Image Banner - Ride Theme

Glowsmith
Excursionist
13 0 5

Hello, 

Wondered if anyone could help with the following problem. 

I have been trying to get separate banner images to display for desktop and mobile however I have been unsuccessful, can someone who knows the code help out?

 

Appreciate any support.

Accepted Solution (1)

Dan-From-Ryviu
Shopify Partner
9155 1832 1865

This is an accepted solution.

Hi @Glowsmith 

You can add 2 separate image nanner sections and then add those codes to make them appear separately for mobile and desktop.
Add this code to Custom CSS code of the section that you want to hide on the mobile.

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

Add this code to the Banner section you want to hide on the desktop.

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

DanFromRyviu_0-1706151631156.png

 

- Helpful? Like and Accept solution!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

View solution in original post

Replies 5 (5)

Made4uo-Ribe
Shopify Partner
7683 1850 2266

Hi @Glowsmith 

Check this one. 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
Glowsmith
Excursionist
13 0 5

Thank you but that didn't work for me. 

Dan-From-Ryviu
Shopify Partner
9155 1832 1865

This is an accepted solution.

Hi @Glowsmith 

You can add 2 separate image nanner sections and then add those codes to make them appear separately for mobile and desktop.
Add this code to Custom CSS code of the section that you want to hide on the mobile.

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

Add this code to the Banner section you want to hide on the desktop.

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

DanFromRyviu_0-1706151631156.png

 

- Helpful? Like and Accept solution!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

Glowsmith
Excursionist
13 0 5

Fantastic! That solution was much simpler than most of the others I came across. 

Thank you for your help, very much appreciated. 

Dan-From-Ryviu
Shopify Partner
9155 1832 1865

Happy I could help 😁

- Helpful? Like and Accept solution!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.