Jump to content

Change Logo/Header color in different pages

Go to solution Solved by Lesum,

Recommended Posts

Currently on my home page I have my logo and links all in white. However I want to make my other pages have a white background and black heading. Is there a way I can change the header on my other pages so that they are black text/logo without changing my main home page. 

Link to comment
  • Replies 8
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

@JusChow You can try the code blocks below to display a black header background:

For Portfolio page:

#collection-64f2cd31da920c04bc6530b7 {
	header#header {
		background: #000 !important;
	}
}

For About page:

#collection-64f2cd31da920c04bc6530b7 {
	header#header {
		background: #000 !important;
	}
}

For contact page:

#collection-64f2cd31da920c04bc6530b7 {
	header#header {
		background: #000 !important;
	}
}

You just have to change the #collection-id on each block of code. Each page has their unique collection-id. You can find the collection-id of a page using this Chrome extension: https://chrome.google.com/webstore/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? Buy me a coffee?

Link to comment

@JusChow Sure. This block of code will change the logo and text links to black on the portfolio page:

#collection-64f2cd31da920c04bc6530b7 {
	.header-title-logo img {
		filter: brightness(0%) !important;
	}
	.header-nav-item a {
		color: #000000 !important;
	}
	.header-actions .icon--fill svg {
		fill: #000000 !important;
	}
}

This code will convert the logo to black. You won't have to upload a black logo. 

Edited by Lesum
Added the code to change the social icon to black

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? Buy me a coffee?

Link to comment
56 minutes ago, Lesum said:

@JusChow Sure. This block of code will change the logo and text links to black on the portfolio page:

#collection-64f2cd31da920c04bc6530b7 {
	.header-title-logo img {
		filter: brightness(0%) !important;
	}
	.header-nav-item a {
		color: #000000 !important;
	}
}

This code will convert the logo to black. You won't have to upload a black logo. 

Do I put this into the page settings under advanced? 

So far inputting the block of code into page settings advanced doesn't work.

 

Link to comment
  • Solution

@JusChow You can put this version into page settings under advanced.

<style>
#collection-64f2cd31da920c04bc6530b7 {
	.header-title-logo img {
		filter: brightness(0%) !important;
	}
	.header-nav-item a {
		color: #000000 !important;
	}
	.header-actions .icon--fill svg {
		fill: #000000 !important;
	}
}
</style>
Edited by Lesum
Added the code to change the social icon to black

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? Buy me a coffee?

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.