Jump to content

Gradient background and image code don't work after latest update.

Go to solution Solved by Ziggy,

Recommended Posts


This code used to work for achieving a gradient background through my whole site (full page).


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

.site-wrapper{background: linear-gradient(#000000, #efede8)!important;}

And this to add full page background image to only my homepage. 

background-size: cover;
  background-size: cover;
    background-position: center center;
    background-repeat: no-repeat!important;}

Unfortunately the code stopped working after a recent update. Hopefully someone can point my mistake in the code!

Thank you!

Link to comment
  • Solution

Squarespace made a change to the HTML for page sections last week:

Try changing your first line to this:

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

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
  • 2 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.