Jump to content

Is it possible to change the color of a single header icon for a different pages?

Recommended Posts

I currently have social links for Instagram and Tiktok which look great but due to the color being white it's pretty much invisible on other pages of my website. I need it to be white on the main page because it is visible there. What I need now is to change the color of the TikTok Icon specifically to black for the other pages on my site.

Link to comment
  • Replies 4
  • Views 713
  • Created
  • Last Reply
17 hours ago, AdamSS said:

@tuanphan My website is https://www.picnictheory.com/.

 

- Thanks

Add to Design > Custom CSS

/* Tiktok color */
body:not(.homepage) header#header .icon[aria-label="URL"] {
    filter: invert(1);
    -webkit-filter: invert(1);
}

 

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

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.