Jump to content

[Share] Change social icons button color in header

Recommended Posts

To change social icons color in Header, you can follow these CSS code.

If it doesn't work, you can send link to your site, I will check again.

#1. Social icons color on All Pages

Use this to Custom CSS box

header#header a.icon svg {
    fill: #f1f;
}

image.png.b853d4c34c54ce57015a4985bdfa2212.png

#2. Social icons color on All Pages – Desktop Only

Use this CSS code

@media screen and (min-width:768px) {
  header#header a.icon svg {
      fill: #f1f;
  }
}

#3. Social icons color on All Pages – Mobile Only

@media screen and (max-width:767px) {
  header#header a.icon svg {
      fill: #f1f;
  }
}

#4. When burger overlay menu is open

body.header--menu-open header#header a.icon svg {
    fill: #f1f;
}

#5. Before header scroll

header#header:not(.shrink) a.icon svg {
    fill: #f1f;
}

#6. On Header Scroll

header#header.shrink a.icon svg {
    fill: #f1f;
}

#7. Social icons color on One Page

First, find Page ID.

Then use CSS code like this

#collection-6673f2e18432c25013aee99f header#header a.icon svg {
    fill: #f1f;
}

image.png.01c47f765abc4c1a33570085bd8a2662.png

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
  • Replies 0
  • Views 284
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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.