Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Hudson: How can I change the background color on one page?

Go to solution Solved by jgennick,


  • Answers 12
  • Created
  • Last Reply

Top Posters For This Question

12 answers to this question

Recommended Posts

  • 6

Changing the color on just one page is possible using a couple of CSS rules. Go to your one page, click the Settings button, then go to the Advanced tab. Enter the following into the Page Header Code Injection field:

 body {background-color: pink;}
 #canvas {background-color: pink;}

The first rule changes the entire page body. The content area has its own color setting though, so you must change that one separately. I’ve tried these rules on the demo site’s Read Me page, and they seem to do what you are after.

Possibly you might need to add !important after the color names, as in “…:pink !important;”. Try the above first. Add the !important if you need it.

It would be to your advantage to learn enough about CSS to personally understand what the above rules mean and how they work. That’s a shameless plug for my book, but it’s true too.

Jonathan Gennick, Author: Learn CSS for Squarespace

Link to post
  • 0

wow I spent hours and nothing worked but this actually worked. I just bought your e-book now because you helped me. I was about to pull my hair out. I am hoping to learn from it. I got a feeling this will be a good investment. I also have a feeling I will be working with a few squarespace sites in the future. Thanks again.

Link to post
  • 0

Hi Jonathan – this is almost exactly what I need also. I'm working with the OM template and this changes the Site Background – how do I change the Canvas Background? I will have a look at your eBook also! Many thanks, Alex

Edited by Pocamuffin
Link to post
  • 1

The Fulton template is better as a separate question, and it would help if you posted a link to the specific page you want to colorize. For regular pages though, the following seems to work:

#siteWrapper {background-color: green;}

And then you can target the footers with:

#preFooter {background-color: green;}
#footer {background-color: green;]

Index pages may require a different technique.

I had time for only a fast look while eating breakfast, and hope the above helps.

Edited by JonathanGennick
Link to post
  • 1

Hi Jonathan, are you able to help with the background color of a page under an index? i have tried:

#editions {background-color: #f3f2ed;}

under the Index > Settings > Advanced > page header code injection. But still no luck

Edited by sanso
Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

  • Create New...