Jump to content

My gradient background colour has gone?

Go to solution Solved by beatrizc,

Recommended Posts


I set up our website in 2020 and everything has been fine till I noticed today the gradient background I set up for every page is gone. The footer is also weird. When I check the CSS and change it, it only changes the footer colours. I haven't changed any CSS codes, so not sure what has happened?

The code I used for it:
.site-wrapper{background: linear-gradient(to top,#A9ACB6, #00688B, #000000)!important;}
.page-section, .section-background{background:transparent!important;}

Any help appreciated!

Link to comment
  • Solution

Hey @CynMetz!

That issue is coming from a recent update.

There's a new container (.section-border) that carries the background color for the content sections. And since that one isn't being targeted in your current code, it's not set as transparent.

You can easily fix that by swapping that second code line for this one:

.page-section, .section-background, .section-border {background:transparent!important;}

Hope that helps!

Squarespace Customization Geek | Helping fellow designers code the heck out of Squarespace

☞ Get the free Squarespace Coding Essentials guide to reach that next level of customization you're aiming for.

☞ Check out all the plugins & mini-courses and masterclasses available to help speed up your projects.

☞ Looking to outsource a customization or fix? I'd love to help you out. Get in touch!


Website | Youtube | Facebook | Pinterest

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.