Jump to content

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

Recommended Posts

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

Edited by Pete550
Link to comment
  • Replies 3
  • Views 421
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

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

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.