Jump to content

Background colour dropping out despite using advanced code injection

Recommended Posts


I have set a white background on some of the pages on my clients site, by using the following in the page Advanced code injection:

.Main {
  background-color: hsl(0,0%,100%); !important;

But sometimes the white drops out and the backgrounds revert back to the main background page colour. If I cut and then paste the code back in, it works again.  But I don't want to have to keep doing that of course!

Any ideas?

Thanks everyone.


Link to comment
  • Replies 4
  • Views 420
  • Created
  • Last Reply

You should place the url of your site to check

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!


Link to comment


This topic is now archived and is closed to further replies.

  • 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.