Jump to content

Whatsapp icon in header on 7.1 FE

Go to solution Solved by Beyondspace,

Recommended Posts

Posted

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

  • Solution
Posted
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 (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

  • 10 months later...
Posted (edited)
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
Posted
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!)

Posted
8 hours ago, tuanphan said:

Add it to Home > Design > Custom CSS

squarespace-add-css1-min.png

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

Posted
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!)

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.