Jump to content

Add Call-Icon to Social Media Icons

Go to solution Solved by tuanphan,

Recommended Posts

  • Replies 6
  • Views 1.6k
  • Created
  • Last Reply

Top Posters In This Topic

On 11/20/2023 at 4:33 PM, CorinnaR said:

yes sure, if that works - link is added!

oh and i forgot to add, the icon should preferably invert color like the rest of the icons! white on front-page, black on other pages. 

thanks already 🙂

Try adding this code to Website > Website Tools > Custom CSS. I used an icon url on Google, you can replace with your icon, then we will check invert white/black color code

header#header [href*="tel"] svg {
    display: none;
}

header#header [href*="tel"]:after {
    content: "";
    background-image: url(https://png.pngtree.com/png-vector/20201028/ourmid/pngtree-phone-icon-in-solid-circle-png-image_2380227.jpg);
    background-size: contain;
    display: inline-block;
    width: 20px;
    height: 20px;
}

 

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
  • Solution
On 11/22/2023 at 6:23 PM, CorinnaR said:

perfect - this worked. I switched it to my icon, which is black - so I would only need to switch it to white on the front-page. 

Add this code under to invert to white on homepage

body.homepage header#header [href*="tel"]:after {
    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

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.