Jump to content

Disable Background Image on Mobile

Recommended Posts

Site URL: https://meinphotokurs.ch

Hi guys

I'm trying to disable the background image of a section on mobile, but somehow I can't manage to do that.

I found in different forums this code:

@media screen and (max-width: 768px) {
    section[data-section-id="6242b5d7ad5bb6583194145b"] .section-background img {
        display:none !important;
    }
}

I tried also different variations I found over the net, but nothing really works...

Does someone know what could be the problem?

Best regards

Link to comment
  • Replies 7
  • Views 470
  • Created
  • Last Reply

Top Posters In This Topic

On 5/11/2022 at 6:07 PM, onyva said:

Hi tuanphan

I want to disable the background of the hero element...

It looks like you solved with this?

@media screen and (max-width: 768px) {
    section[data-section-id="6242b5d7ad5bb6583194145b"] .section-background img {
        display:none !important
    }
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 5/15/2022 at 5:37 AM, tuanphan said:

It looks like you solved with this?

@media screen and (max-width: 768px) {
    section[data-section-id="6242b5d7ad5bb6583194145b"] .section-background img {
        display:none !important
    }
}

 

Not really, the background is still visible on mobile...

Link to comment
  • 4 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.