Jump to content

Change colour of instagram logo, login and cart icon in header to white on home page only

Recommended Posts

Posted

I would like to change the colour of instagram logo, login and cart icon in header to white on home page only. 

Other pages I want everythig in the header to be black, so just the homepage as then its white over the background video. 

I have used code to invert the colour of the logo and the menu items already. 

Thanks!

@tuanphan

Screenshot 2021-07-21 at 21.59.15.png

  • Replies 3
  • Views 504
  • Created
  • Last Reply
Posted

try:

.header-actions .icon--fill svg {
	fill: white !important;
}

.header-actions a {
	color: white !important;
}


.header-actions .icon--stroke svg{
	stroke:white !important;
}

.header-actions .icon-cart-quantity {
	color: white !important;
}

 

If you find our solution helpful please thumbs up or mark it as the solution! Thank you 🙂

Contact Us for detailed help

Common Squarespace Tips

Sharing Your Site Link

Squarespace web designers in Perth WA.

Posted

Heya

 

this works! However, I want to have it so its ONLY white on the home page (where it overlays a video). All other pages it needs to stay black

Pete

 

Posted
17 hours ago, Pete550 said:

Heya

 

this works! However, I want to have it so its ONLY white on the home page (where it overlays a video). All other pages it needs to stay black

Pete

 

Try editing above code to this

body.homepage {
.header-actions .icon--fill svg {
	fill: white !important;
}

.header-actions a {
	color: white !important;
}


.header-actions .icon--stroke svg{
	stroke:white !important;
}

.header-actions .icon-cart-quantity {
	color: white !important;
}
}

 

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.