Skip to content

Generals

Add free Whatsapp chat bubble to your website

  • Uzman Tescil Editorial Team
  • 1 min read
Add free Whatsapp chat bubble to your website
Generals

In short

  • A sticky WhatsApp button lets visitors reach you with a single tap.
  • The button is free and added to your site template with a few lines of code.
  • Using a link that does not depend on an external service keeps the button working.
Contents
  1. A WhatsApp button with no external service
  2. Making the button more effective

The code is completely free. You just need to edit it for yourself and then add it to the fields you want to appear on your site.

The button in question will follow when you stick to the screen on your site and move it up and down.

Business owner managing a website from a smartphone
Most visitors browse on their phones, so a mobile-friendly site is now essential.
(function () {
var options = {
whatsapp: "901234567890", // WhatsApp nubmer
call_to_action: "Whatsapp Support", // Butonun yaninda gorunmesini istediginiz yazi
position: "left", // position 'right' 'left'
};
var proto = document.location.protocol, host = "getbutton.io", url = proto + "//static." + host;
var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = url + '/widget-send-button/js/init.js';
s.onload = function () { WhWidgetSendButton.init(host, proto, options); };
var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x);
})();

It is completely free.

A WhatsApp button with no external service

The code above depends on a third-party service; if the service shuts down, the button stops working. The example below uses WhatsApp’s official wa.me link and loads no external files. Add it right before your site’s </body> tag and write the number with the country code, without a leading zero:

<a href="https://wa.me/905XXXXXXXXX?text=Hello" target="_blank" rel="noopener"
   style="position:fixed;left:20px;bottom:20px;z-index:999;display:flex;align-items:center;
          justify-content:center;width:56px;height:56px;border-radius:50%;
          background:#25D366;color:#fff;box-shadow:0 8px 24px rgba(0,0,0,.2)"
   aria-label="Message us on WhatsApp">WA</a>

Making the button more effective

  • Add a ready greeting message with the ?text= parameter.
  • Show your working hours next to the button or on your contact page.
  • Place the button in a corner where it does not overlap other sticky elements such as a chat assistant.

Share this article

Uzman Tescil Editorial Team

Guides drawn from over 17 years of domain, hosting and web design experience, written to move your business a step ahead online.

Ready-made website packages

Go live quickly with ready-made site packages that include a domain, hosting and an SSL certificate.

Keep reading

You may also like

How Long Does It Take to Build a Website? Generals

4 min read

How Long Does It Take to Build a Website?

The time required to build a website can vary depending on several factors, such as the website’s scope, functionality, design complexity, and the platform used. From a simple personal blog to a…

Read more
Is It Expensive to Build a Website? Generals

3 min read

Is It Expensive to Build a Website?

With the rapid advancement of technology, having a website has become increasingly important. However, building a website may seem like a complicated process for many people. One common question that…

Read more
instagram create a web site Generals

3 min read

instagram create a web site

Instagram is a social media platform with millions of users worldwide, known for its visual-centric content. It has become an essential tool for businesses to increase visibility and reach their…

Read more
WhatsApp Message us now Call Now 0850 309 1 889