Jump to content

Whatsapp icon in header on 7.1 FE

Go to solution Solved by Beyondspace,

Recommended Posts

Site URL: https://newmomu.squarespace.com/

pw: newmomu

I managed to put in a Whatsapp icon in my navigation with this code but I can't get it to be inline with the Youtube link. Also, how can I get it to change color when hovered on?

header#header [href*="wa.me"] {
    visibility: hidden;
}
header#header [href*="wa.me"]:before {
    visibility: visible;
    content: "\f232";
    font-family: "Font Awesome 5 Brands";
  color: white;
 }

Thanks!

 

image.png.6d542b398aedce603f2d1bcc6604171d.png

👋 Michelle John
💕 
Catchafire volunteer 
🖥️ Web & graphic design for churches, nonprofits & small businesses

🔗 brambledesign.co

Bramble Design

Link to comment
  • Solution
12 minutes ago, MJohn said:

Site URL: https://newmomu.squarespace.com/

pw: newmomu

I managed to put in a Whatsapp icon in my navigation with this code but I can't get it to be inline with the Youtube link. Also, how can I get it to change color when hovered on?

header#header [href*="wa.me"] {
    visibility: hidden;
}
header#header [href*="wa.me"]:before {
    visibility: visible;
    content: "\f232";
    font-family: "Font Awesome 5 Brands";
  color: white;
 }

Thanks!

 

image.png.6d542b398aedce603f2d1bcc6604171d.png

Try adding to Home > design > Custom Css

header#header [href*="wa.me"] {
  display: flex;
  align-items: center;
}

header#header [href*="wa.me"]:hover:before {
  color:green;
}

Let me know how it works on your site

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

My testing

image.thumb.png.a0661e926c17c429b754268eabacc241.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
  • 10 months later...
On 7/28/2022 at 11:08 AM, MJohn said:

That works! Thanks!

Hey John.. could you help me? 

 

My website is www.fercomaz.comimage.thumb.png.84c7c95186d946fd69ee5090082b993c.png

I insert the code in advanced -> code injection.. however is showing in the top of the page.. do you know what is wrong?

 

thanks!

header#header [href*="wa.me"] {
    visibility: hidden;
}
header#header [href*="wa.me"]:before {
    visibility: visible;
    content: "\f232";
    font-family: "Font Awesome 5 Brands";
  color: white;
 }
Edited by yuribtonani
Link to comment
On 6/15/2023 at 2:06 AM, yuribtonani said:

Hey John.. could you help me? 

 

My website is www.fercomaz.comimage.thumb.png.84c7c95186d946fd69ee5090082b993c.png

I insert the code in advanced -> code injection.. however is showing in the top of the page.. do you know what is wrong?

 

thanks!

header#header [href*="wa.me"] {
    visibility: hidden;
}
header#header [href*="wa.me"]:before {
    visibility: visible;
    content: "\f232";
    font-family: "Font Awesome 5 Brands";
  color: white;
 }

Add it to Home > Design > Custom CSS

squarespace-add-css1-min.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
On 6/17/2023 at 1:16 AM, yuribtonani said:

Tupan.. im so sorry to disturb you.. however, im a dumb in this type of things.. 

I added the code from the quote above in design css .. but has no effect in my website.. 

Captura de Tela 2023-06-16 às 15.14.18.png

That code is FontAwesome code, so you need to declare FontAwesome library first. I sent another code in another thread. You try checking again.

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.