We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

How can I hide a banner image on mobile view only?

Solved

How can I hide a banner image on mobile view only?

foxbiz
Visitor
1 0 0

Hi,

 

I just want the black banner image to only show on desktop, hide on mobile, how can I achieve this?

 

Grateful for any assistance.

 

Thanks,

 

site URL: www.selfit.se

Accepted Solution (1)

AvadaCommerce
Shopify Partner
3879 840 1007

This is an accepted solution.

Hi @foxbiz ,

 

You can follow the instruction below:

1. Go to Online Store->Theme->Edit code
2. Asset->/section-image-banner.css->paste below code at the bottom of the file:

@media (max-width: 749px) {
    #shopify-section-template--15850075586780__1648130833cc79546f {
        display: none !important;
    }
}

If you feel like my answer is helpful, please mark it as a SOLUTION. Let me know if you have any further questions.

banned

View solution in original post

Replies 3 (3)

alexbrown89
Shopify Partner
10 1 2

Add this css code at the very end of your theme stylesheet.

 

@media only screen and (max-width: 767px) {

#shopify-section-template--15850075586780__1648130833cc79546f {display:none!important;}

}
How was my answer?
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit my YouTube Channel

AvadaCommerce
Shopify Partner
3879 840 1007

This is an accepted solution.

Hi @foxbiz ,

 

You can follow the instruction below:

1. Go to Online Store->Theme->Edit code
2. Asset->/section-image-banner.css->paste below code at the bottom of the file:

@media (max-width: 749px) {
    #shopify-section-template--15850075586780__1648130833cc79546f {
        display: none !important;
    }
}

If you feel like my answer is helpful, please mark it as a SOLUTION. Let me know if you have any further questions.

banned
PorzakGolf
New Member
7 0 0

Hello AvadaCommerce,

 

I am trying to do the same thing, but I do not have a /section-image-banner.css file. Where else may I post this code? Looking forward to your response. Thank you!