arising 13 Share Posted September 11, 2014 (edited) How can I change the site background and cavas color for my information page without changing the color of my other pages? Edited April 16, 2015 by arising Questionify, fix title Rosin355 1 Link to post
6 jgennick 5,377 Solution Share Posted September 11, 2014 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: <style> body {background-color: pink;} #canvas {background-color: pink;} </style> 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
1 jgennick 5,377 Share Posted May 11, 2015 (edited) 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 May 11, 2015 by JonathanGennick Link to post
1 apocalynds 0 Share Posted August 21, 2016 Just wanted to say that this works like a charm with the Momentum template. Spent a couple hours and nothing else did (CSS noob here). Thanks a bunch! Link to post
1 sanso 0 Share Posted December 23, 2016 (edited) Hi Jonathan, are you able to help with the background color of a page under an index? i have tried: <style> #editions {background-color: #f3f2ed;} </style> under the Index > Settings > Advanced > page header code injection. But still no luck Edited December 23, 2016 by sanso Link to post
0 DougNapa 0 Share Posted January 19, 2015 This worked great with the Montauk template as well. Link to post
0 QBerry 0 Share Posted February 3, 2015 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 Pocamuffin 0 Share Posted April 16, 2015 (edited) 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 April 16, 2015 by Pocamuffin Link to post
0 jgennick 5,377 Share Posted April 16, 2015 Every template requires different CSS rules. Some problems are easier to solve in one template than in another. Please post a link to your site, and I will try and take a look. Link to post
0 jgennick 5,377 Share Posted April 17, 2015 Maybe something like: body {background-color: pink;} div#canvas {background-color: pink;} Put style tags around them and put them into the Page Header Code Injection field for the page you want to affect. Link to post
0 jolt_trevor 0 Share Posted May 7, 2015 I'm using the Fulton template and that didn't seem to change the page background for me even after adding "!important;" . :( Link to post
0 ThatMattyH 0 Share Posted December 1, 2016 THANK YOU! I was trying this out and adding the sitewrapper did the trick (colour underneath the gallery block.) You're a true gentleman! Many thanks,Matt I'm a filmmaker. Ta da. Link to post
0 rileyravis 0 Share Posted February 28, 2017 Anyone know how can you do this on the York template? :) Link to post
Question
arising 13
How can I change the site background and cavas color for my information page without changing the color of my other pages?
Edited by arisingQuestionify, fix title
Link to post
Top Posters For This Question
4
1
1
1
Popular Days
Sep 11
2
Apr 16
2
Apr 17
1
Dec 23
1
Top Posters For This Question
jgennick 4 posts
arising 1 post
DougNapa 1 post
QBerry 1 post
Popular Days
Sep 11 2014
2 posts
Apr 16 2015
2 posts
Apr 17 2015
1 post
Dec 23 2016
1 post
12 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment