Jump to content

Removing background image on mobile

Go to solution Solved by ChrisBartow,

Recommended Posts

  • Solution

This should remove it in The Wedding Party section, but may need to add back the color. I don't see the Hero section though. You should be able to do the same thing for that if you find the data-section-id.

@media (max-width: 768px) {
	section[data-section-id="5ea5df28b7d80f496463e8db"] .section-background img,
	
	{
		display:none;
	}
}

 

Creating websites using Squarespace at Design by Donuts 🍩

Link to comment
  • 9 months later...
  • 2 months later...
On 2/26/2021 at 11:12 PM, kasandramurray said:

I was having issues with the above code. The comma after the img property causing the code not function properly. Once I removed that comma it worked for me. Here is my updated code:

 


@media (max-width: 768px) {
	section[data-section-id="5ea5df28b7d80f496463e8db"] .section-background img
	
	{
		display:none;
	}
}

 

Thank you both, this was a huge help!

 

Link to comment
  • 11 months later...
On 5/2/2022 at 2:28 PM, Iwan said:

Hi there! On my landing page I am trying to remove a section background image with the above code but it isn't working? Please help! I just want a white background...

https://jeanine-thompson.squarespace.com/

password tuansqsp

CaptureMob.PNG

It looks like you hided it?

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

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.