Jump to content

Changing the colour for Header and Footer on one page

Recommended Posts

  • Replies 24
  • Created
  • Last Reply

Top Posters In This Topic

On 6/13/2021 at 2:04 PM, Shabeerz said:

Site URL: https://chiton-bassoon-6dzg.squarespace.com

Hi everyone, 

I'm looking to change the colour for the header and footer on one page, the 'about' page. I'd like to change it to the inverse of what I've got going for the rest of the site, so black font on a white background, which is the 'Lightest 1' option in the colour palette. 

Any help would be appreciated. 

Thanks

Hi. Your site is private. Can you setup password & share url again? We can help easier

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 3 weeks later...
On 6/30/2021 at 5:48 PM, Shabeerz said:

Tuanphan, I've removed the password, you should be able to see it now. 

Thanks
 

Hi. It looks like you solved this? I see black header & white font here.

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 1 month later...
  • 1 month later...

 

On 7/2/2021 at 5:28 PM, tuanphan said:

Hi. It looks like you solved this? I see black header & white font here.

Hi Tuanphan, 

Would you know how to do this: "I'm actually looking for White header and footer on the 'about' page with black font, just like the body text. "

Link to comment
20 hours ago, Shabeerz said:

 

Hi Tuanphan, 

Would you know how to do this: "I'm actually looking for White header and footer on the 'about' page with black font, just like the body text. "

Add to Design > Custom CSS

/* About page */
body#collection-60b09f85dc1205130b007bec {
	header#header *:not(.btn) {
    color: black;
}
header#header {
    background-color: white !important;
}
footer.sections .section-background {
    background-color: white;
}
footer.sections * {
    color: black !important;
}
}

 

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 6 months later...
18 hours ago, Iwan said:

Hi there,

How do I give each footer section a different colour background on each page, please?

Edit each page >> Add a Code Block at bottom of page > Paste this code

<style>
  footer.sections .section-background {
    background-color: white;
}
</style>

 

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
2 hours ago, Iwan said:

Hi Tuan, thank you. But if I paste this code in the Custom CSS portal, will it not apply the code to all the footers?

I would like the footer on each page to have a different background colour?

Add the code to the Page Settings > Advanced area of each page. Simply change the colour of the code whenever you add it.

Please give this a 👍 if it helps

Link to comment
1 hour ago, Iwan said:

Thanks again @Jia https://beige-oleander-mp66.squarespace.com/ password: sqsp 

As mentioned, add this code to the Page Settings > Advanced area of each page. Just replace 'HEX' with the values of your preferred colours. Let me know how it goes 🙂

<style>
footer#footer-sections .section-background {
  background-color:#HEX;
}
</style>

 

Please give this a 👍 if it helps

Link to comment
13 minutes ago, Iwan said:

Thank you I will try it out!

Another question please @Jia🙏 On this page:

https://beige-oleander-mp66.squarespace.com/new-page password tuansqsp

Can I merge the background image of the section above the footer with the background of the footer? So basically the bottom section plus footer must have the one same background image?? 

It's a different section, so unfortunately no, I dont think this is possible.

Please give this a 👍 if it helps

Link to comment
  • 2 weeks later...
23 hours ago, Iwan said:

Hi @Jia, the code injection in the advanced header section of my page to change the colour of the footer background isn't working...please help?? It was working, now it isn't...

Can you share link to page where you have problem?

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Hi @tuanphan, I figured out the problem...

For the pages where I have inserted the header code injection to change the colour of the footer, it disables the background of the sections on that page where I've applied an ART background... 

So on my ABOUT page https://beige-oleander-mp66.squarespace.com/about I want the white footer...but now I can apply the ART function to any of the sections...

And on my SPEAKING page https://beige-oleander-mp66.squarespace.com/speaking I want a white footer, but if I insert the code I lose the ART background in the quote section...

Can you help? How do I insert the footer colour change code but also be able to use ART background effect?

Link to comment
  • 1 year later...
11 hours ago, TaitDesign said:

My two cents: I found the  *:not(.btn) to do the trick. I don't know what it means, but it worked where nothing else has. Thank you.

Screen Shot 2023-06-19 at 8.56.20 AM.png

*:not(.btn) will target all elements except those with class name of .btn. Btn usually only appears in Header Buttons

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.