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

Changing background colour on different pages


iamvandal3

Question

Site URL: https://garlic-rhubarb-z5as.squarespace.com/

Hello,

I'd like to have one particular colour on my homepage and a different one on the others.

I've tried two different ways, none of which are working.

First one was adding to Page Settings > Advanced > Header

<style>
  div#site {
    background: white;
}
</style>

 

And second was adding to Design > Custom CSS

<style>
.collection-type-index #about {
  background-color:#FAFAFA!important;}
</style>

 

I'm really confused why none of those are working.

I just need my home page to be orange and all the other ones to be white.

Can anyone help me out?

 

Link to post
  • Answers 3
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

3 answers to this question

Recommended Posts

  • 0

Your site is private. Can you share link to your site?

Each template needs different code. Each page type needs different code. Where did you get above code?

You can send your question to my email to get faster answer. / How to Setup Password & Share URL 

-- I'm Tuan, work for a non-profit project (build free libraries). I check the forum once or twice a day to help out the community. If you don't see me answering your question, you can send it to the email above. 

Link to post
  • 0
3 hours ago, iamvandal3 said:

Hey, here's the link: https://garlic-rhubarb-z5as.squarespace.com/config/

Password: balegdah

 

I got those codes from searching for solution on forums...

Add to Home > Design > Custom CSS

.homepage main#page .section-background {
    background: yellow;
}

 

You can send your question to my email to get faster answer. / How to Setup Password & Share URL 

-- I'm Tuan, work for a non-profit project (build free libraries). I check the forum once or twice a day to help out the community. If you don't see me answering your question, you can send it to the email above. 

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