Jump to content

How to remove parallax background image on mobile only

Recommended Posts

I'm trying to remove the background image in one section of my client's website. The problem I'm running into is that this background use the parallax scrolling effect under "image effects" and the code I'm using does not work unless this effect is turned off. 


Here's the code I'm using: 

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

.section-background img { opacity:0!important }}


I tried adding the code below as well- and it works to remove the background image, however it removes all of the parallax background images and I'm only wanting to target the one section.

@media only screen and (max-width: 640px) {
.section-background-content {
display: none !important;


Any insight on this issue is greatly appreciated! 

Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

You can add data-section-id before this code

@media only screen and (max-width: 767px) {
[enter data section id here] .section-background-content {
display: none !important;


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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

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.