Jump to content

Changing colour of header and footer on only one page

Recommended Posts

Site URL: https://koi-turtle-f3eh.squarespace.com/

Hello! I am trying to change the colour of the header and footer only on the home page - I have tried targeting the collection id and also injecting into the page header but I cannot for the life of me figure it out. I have attached an image below - I need the header to match the colour in the logo but ONLY for the home page. 

Here is the link to the site https://koi-turtle-f3eh.squarespace.com/

Thank you in advance!

 

image.thumb.png.ab03fdb8f971e2e49530006864a8473c.png

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

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Hi, try this code, it should work for just the homepage, I think that the colour is correct, but you can adjust the #HEX if needed.

#collection-63169d1b2a89ee474abc6b88 {
.header {
    background: #2B2A29;
}
#header a {
    color: #ffffff !important;
}
#footer-sections .section-background {
    background: #2B2A29;
}
}

 

Edited by Ziggy

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

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 

  Did I help? Buy me a coffee?

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

Link to comment

If you can contact me via my website I'll see what I can do to help you with this, I'll need access to the dashboard to effectively get this working: https://squarefortytwo.com/

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

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 

  Did I help? Buy me a coffee?

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

Link to comment

Use this new CSS code

/* Homepage */
body.homepage .header-background-solid {
    background-color: black !important;
}
body.homepage footer.sections .section-background {
    background-color: black !important;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

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.