Scriptfeeds Blog
  • Blog
  • WordPress
    • Woocommerce
    • WordPress Errors
    • WordPress Plugins
  • Development
    • WordPress Themes
  • Hire us
No Result
View All Result
Whatsapp us
Scriptfeeds Blog
  • Blog
  • WordPress
    • Woocommerce
    • WordPress Errors
    • WordPress Plugins
  • Development
    • WordPress Themes
  • Hire us
No Result
View All Result
Scriptfeeds Blog
No Result
View All Result
Home Wordpress

How to add Floating WhatsApp button without Plugin in website 2023

Scriptfeeds by Scriptfeeds
July 8, 2021
in Wordpress, Development
10
floating-whatsapp-button-for-website
Share on FacebookShare on TwitterWhatsapp this Blog

Floating WhatsApp button without Plugin in WordPress website are those which floats on top of Website without disturbing the content of the website. It works great as a CTA (Call to action) button which helps website visitor to take instant action and respond to any specific action.

Table of Contents

  • 4 steps to add Floating WhatsApp button without Plugin.
    • Complete Code to have Floating WhatsApp button

Floating button can be anything like Call button, Whatsapp, social icons, Mail icon which direct customer to specific link when they click on it. In this blog we gonna show you how you can add a Floating WhatsApp button without Plugin on your website (WordPress or HTML) without using any JavaScript. Its a pure HTML and CSS based floating WhatsApp button without plugin.

Let’s come to point.

You can follow these 4 steps to add Floating WhatsApp button without Plugin for your wordpress or HTML website. It will work on both.

  • Add the font awesome icons CSS via max CDN link before </head>. if its already added in your WordPress by theme developer then ignore this step.
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
  • Add the whatsapp button link which will initiate the opening process. Add your own number and text in code below.
<a href="https://api.whatsapp.com/send?phone=0987654321&text=Hello%21%20." class="floating" target="_blank">
  • Add the fa-fa icon HTML code to make it float.
<i class="fa fa-whatsapp float-button"></i>
</a>

So complete Code will look like below after adding Font-awesome CDN link in <head> tag. So once code added, you will have Floating WhatsApp button without Plugin on your WordPress website.

<a href="https://api.whatsapp.com/send?phone=0987654321&text=Hello%21%20." class="floating" target="_blank">
<i class="fa fa-whatsapp float-button"></i>
</a>
  • Add CSS in your CSS file to make it float on website. You can change CSS as per requirement like Left/right, Height, width etc.
.floating{
	position:fixed;
	width:60px;
	height:60px;
	bottom:40px;
	right:40px;
	background-color:#25d366;
	color:#FFF;
	border-radius:50px;
	text-align:center;
       font-size:30px;
	box-shadow: 2px 2px 3px #999;
  z-index:100;
}

.float-button{
	margin-top:16px;
}

Once all done the final result will be like a floating WhatsApp button on right bottom on your screen.

Floating whatsapp button without Plugin
A Floating WhatsApp button on a on Namamigange Spiritual Website

Just follow all the steps below and you are good to go. In case if its not showing properly then do a hard refresh (Ctrl+F5) or open in Incognito Mode to check.

You can use same code to show any floating icon like Calling button or social button. Just replace the font awesome code in 3rd step with the respective fa-fa icon and link.

You can also align multiple buttons one above other. It’s all about how to use CSS code.

Website to IOS and Android App Website to IOS and Android App Website to IOS and Android App

NOTE : If you are using WordPress then add the fontawesome CSS in header file using insert header footer plugin (Use if your theme don’t have option to add CSS/JavaScript code in header or footer). Add CSS code in style.css file of your child theme and Floating link and HTML code in footer of your theme.

So that’s all. Give it a try and let us know how it works in comment section. You can ask our Developer to help you

Happy Coding!!

Tags: 3 Steps to add floating button in wordpressWhatsapp floating button for Whatsappwhatsapp floating button without plugin

Related Posts

wordpress-error-fix-scriptfeeds
Errors

WordPress Error: Your upload path is not valid or does not exist

October 25, 2023
wordpress-error-fix-scriptfeeds
Errors

Fix “Your upload path is not valid” error in 2 quick steps

May 28, 2023
scriptfeeds-wocommerce-hookups
PHP Snippet

Quickly Display Stock Availability at WooCommerce Shop page 2023

March 7, 2023
Subscribe
Login
Notify of
guest
guest
10 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Andre Priyono
Andre Priyono
2 years ago

I did it for my client! Superb! Thanks!

0
Reply
Skit Van Darken
Skit Van Darken
1 year ago

It worked. Thank you very much!

0
Reply
Lufra
Lufra
1 year ago

If I want to add a second float button, using the same code, how can I make the css understand which one I want to configure?

1
Reply
Scriptfeeds
Scriptfeeds
Author
Reply to  Lufra
1 year ago

hi,
Yes same code, just change the CSS classes and it will work. You can also ping us on whatsapp at 7838741037

Regards

0
Reply
divs
divs
1 year ago

Not working on astra theme the whatsapp symbol is not visible

0
Reply
Scriptfeeds
Scriptfeeds
Author
Reply to  divs
1 year ago

Replace to
It will work.

1
Reply
Akash
Akash
1 year ago

Button showing but, Button showing only homepage in my website. Help me

0
Reply
Scriptfeeds
Scriptfeeds
Author
Reply to  Akash
1 year ago

Hello,
Akash, you have to add this code on your footer.php file in wordpress. for help, please whatsapp us.

Regards

0
Reply
Rui Oliveira
Rui Oliveira
1 year ago

Simple but does the job. Thanks.

0
Reply
priya
priya
11 months ago

whatsapp button iphone is not working

0
Reply
JOIN US ON TELEGRAM
HIRE US FOR YOUR PROJECT
Scriptfeeds Blog

© 2022 Scriptfeeds

Blog Categories

  • WordPress
  • Development
  • Reviews
  • Marketing

Connect us on

No Result
View All Result

© 2022 Scriptfeeds

wpDiscuz
This website uses cookies. By continuing to use this website you are giving consent to cookies being used. Visit our Privacy and Cookie Policy.