Jump to content

WhatsApp icon in social links

Go to solution Solved by tuanphan,

Recommended Posts

 
Im looking for to add WhatsApp icon button in social links (right top of the page), just as it is in the image.. does anyone have any idea? Whatsapp is very useful for my company.. 
thanks!
 
my website is: www.fercomaz.com 
 
 
found topics about the same problem in forum from 2020! its crazy that its past over 3 years and SQ doesn't have WhatsApp or TikTok button.. 
 
Those solutions doesn't work anymore.. 
 

 

Captura de Tela 2023-06-12 às 08.25.35.png

Edited by yuribtonani
Link to comment
  • Solution

Add this code to Design > Custom CSS. You can replace whatsapp icon in the code with new url (because we can't use code to change its color, so if you need to change to blue, you can send new icon, I will give new code)

/* Whatsapp */
header#header [href*="whatsapp"] {
    background-image: url(https://i.ibb.co/xKZkYDB/whatsapp-icon.png);
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
}
header#header [href*="whatsapp"] svg {
    display: none;
}

 

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
  • 4 weeks later...
  • 8 months later...
On 6/20/2023 at 12:27 PM, tuanphan said:

Add this code to Design > Custom CSS. You can replace whatsapp icon in the code with new url (because we can't use code to change its color, so if you need to change to blue, you can send new icon, I will give new code)

/* Whatsapp */
header#header [href*="whatsapp"] {
    background-image: url(https://i.ibb.co/xKZkYDB/whatsapp-icon.png);
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
}
header#header [href*="whatsapp"] svg {
    display: none;
}

 

Great Solution , If someone needs to get same thing done in footer  you can use this code, just a extension to above one.

footer#footer-sections [href*="wa.me"] {
    background-image: url(https://i.ibb.co/xKZkYDB/whatsapp-icon.png) !important;
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
}
footer#footer-sections [href*="wa.me"] svg {
    display: none;
}

"Whatsapp" is replaced by "wa.me" as per new whatsapp link policy for more check this link How to use click to chat | WhatsApp Help Center

Edited by humxahafeex
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.