Jump to content

How to change the background color of the header on some specific pages.

Recommended Posts

Posted

Hi, 

I was wondering if it is possible to change the background color of my header, of some specific pages.
I'm working with a client and he asked me if the main page could have a black header, but he wants me to put a photo on several of the other pages.

How can I do this?

Thanks, 

Jessica

  • Replies 4
  • Views 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

Posted

Hi, Thank you for your answer. 

https://dodecahedron-carillon-8ppz.squarespace.com/

password: simplify change

So the home page they want the background of the header black, but in the Resources page they want it to be white and if you in the services then all the way down to Project Management, thay want the picture to be part of the header,  i don't know if i made myself clear. 

Attach you can find some exemples.

Homepage.jpg

Resources.jpg

Project Management.jpg

Posted
On 8/16/2023 at 7:57 PM, JessieG said:

Hi, Thank you for your answer. 

https://dodecahedron-carillon-8ppz.squarespace.com/

password: simplify change

So the home page they want the background of the header black, but in the Resources page they want it to be white and if you in the services then all the way down to Project Management, thay want the picture to be part of the header,  i don't know if i made myself clear. 

Attach you can find some exemples.

Homepage.jpg

Resources.jpg

Project Management.jpg

You can add this code to Resource Pages Settings > Advanced > Code Injection Header

<style>
  .header-background-solid {
    background-color: white !important;
}
header#header div.header-nav-item>a {
    color: black !important;
}
</style>

and this code to Services Page Settings > Advanced > Header

<style>
  article section:first-child {
    padding-top: 0 !important;
}
 .header-background-solid {
    background-color: transparent !important;
}
</style>

 

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!)

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.