Jump to content

My gradient background colour has gone?

Go to solution Solved by beatrizc,

Recommended Posts

Posted

Hi, 

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!

  • Solution
Posted

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 Coding Expert | Coding the heck out of Squarespace, one wtf at a time.

☞ Search through The Codebase to learn new CSS tricks and awesome customizations.

☞ Get +150 mini-plugins ready to copy-paste to fix or tweak your Squarespace site.

☞ Got a rare, medium rare or fully cooked idea for your client's project? Let's make it a reality.

 

Website | Youtube

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.