Jump to content

Customise header background colour

Recommended Posts

Site URL: https://www.macalldon.com/

I would like to customise the header background color so it's transparent on my home page, and a different colour on my other pages.

 

I have tried to add this to the advanced page header injection but it doesn't work. It seems to just keep the custom format of the first page I open, and not change when I switch between pages. 

 

<style>
  header.Header.Header--bottom {
    background: #08354E;
}
</style>

 

 

Thanks

Clara

 

Link to comment
  • Replies 3
  • Views 414
  • Created
  • Last Reply

Top Posters In This Topic

  • 4 weeks later...

Hi-

I'm having a very hard time changing the header to transparent on just the home page. I have the solid header option enabled so that I have a blue header on all pages and a white bottom border. I would like to get rid of the border and have the header transparent on just the home page. Logo graphic and navigation color can stay the same; just need to remove the background color of the header on the home page. Nothing is working. I have tried so many snippets of code on both the home page css and the global. Can't seem to get it. Please help. I'm using 7.1. 

Link to comment
On 2/19/2022 at 2:16 AM, gabbyanstey said:

Hi-

I'm having a very hard time changing the header to transparent on just the home page. I have the solid header option enabled so that I have a blue header on all pages and a white bottom border. I would like to get rid of the border and have the header transparent on just the home page. Logo graphic and navigation color can stay the same; just need to remove the background color of the header on the home page. Nothing is working. I have tried so many snippets of code on both the home page css and the global. Can't seem to get it. Please help. I'm using 7.1. 

What is your site url?

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.