Reputation: 6099
I'm trying to add a floating WhatsApp button to my website by using Kevin Castro's Pen here: https://codepen.io/demoonkevin/pen/MvPEpV
Here is the HTML I am using:
<a href="https://api.whatsapp.com/send?phone=12345&text=&source=&data=" class="whatsApp" target="_blank"><i class="fa fa-whatsapp my-whatsApp"></i></a>
Here is the CSS:
/* WhatsApp Button */
.whatsApp{
position:fixed;
width:60px;
height:60px;
bottom:40px;
left:40px;
background-color:#25d366;
color:#FFF;
border-radius:50px;
text-align:center;
font-size:30px;
box-shadow: 2px 2px 3px #999;
z-index:100;
}
.my-whatsApp{
margin-top:16px;
}
However, there are a couple of issues:
Upvotes: 1
Views: 21434
Reputation: 1
Change html font answer icon class in this case this not working new class code is :
Upvotes: 0
Reputation: 11
Just wanted to add that I had the same error.
When I copied the example, it didn't appear in mobile.
But then I just left it there for a month, came back and it worked.
So I guess it was a matter of refreshing the CSS file on the explorer when you make the changes.
Upvotes: 1
Reputation: 590
To fix the color issue please add the following css to your my-whatsApp class because the a:visited property override the color
color: white;
In mobile, look like it work when i try from the browser
Upvotes: 1