Jump to content

Change Logo/Header color in different pages

Go to solution Solved by Lesum,

Recommended Posts

Posted

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. 

  • Replies 8
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted

@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?

Posted

Is there a way to make it black just for the Text and a way to Chang Logo that I can upload to make it black. ? I would like to still keep the white background. 

Posted (edited)

@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?

Posted
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.

 

  • Solution
Posted (edited)

@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?

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.