Skip to content
Free Tools

Add a WhatsApp Chat Button to Your Website

Set up the button, copy the code, and paste it just before the closing body tag of your site.

Spaces, dashes and parentheses are fine. A leading 0 is dropped.

If left empty, it reads “Start chat”.

If left empty, only the WhatsApp icon is shown.

Color
Button Position
Where to Show It

At least one stays on.

Preview
Preview

Your Code

Enter your number to get the code.

Paste the code just before the closing body tag of your site.

Where Do I Paste the Code?

  1. Open the code or custom code section of your theme in the store panel.
  2. Paste the code at the end of the page, just before the closing body tag.
  3. Save, refresh your store and try the button.

Everything you enter stays in your browser.

In three steps

How It Works

  1. Set Up the Button

    Choose your number, position and color. Write the business name and welcome message for the chat card.

  2. Copy the Code

    Try the button and the card in the preview, then copy the code.

  3. Paste It Into Your Site

    Paste the code just before the closing body tag of your site and save.

Guide

How Does a WhatsApp Chat Button Work?

A WhatsApp chat button sits in the corner of your site. Tapping it opens a small chat card with your business name, a welcome message and a button that continues in WhatsApp. Behind it is a wa.me link: WhatsApp opens and your ready-made message waits in the message box.

Why Does a Button Help?

Instead of looking up a phone number or filling in a form, the visitor writes in the app they already use, which makes small questions easy to ask. The welcome card shows the visitor who they are about to write to; one short, friendly sentence is enough.

How Does the Code Work?

The tool produces a short code: your settings and one script line. The code loads one small file from creato.digital; it uses no cookies and contains no tracking code. If you prefer no external file, you can copy the single-file code instead. Class names start with creato-wa-, so they do not clash with your styles. The button opens and closes the card, and so do Esc and the card’s close button. The card can also open by itself after a delay. The single-file code works without JavaScript too.

Where Do You Paste the Code?

The code belongs just before the closing body tag of the page. Most site builders and e-commerce platforms have a place for it in the theme editor or in a custom code area. Save the code, refresh your site and try the button. If your site has a Content Security Policy (CSP), add www.creato.digital to script-src.

How Does It Behave on Mobile and Desktop?

The button stays fixed in the corner and keeps its place as the page scrolls. A screen narrower than 768 pixels counts as mobile, anything wider as desktop. You can show the button on only one of them, for instance on mobile while your site uses its own chat on desktop. The button is hidden automatically when the page is printed.

What to Check Before You Publish

Pick the corner where your site has no fixed buttons of its own. You can match the color to your brand; the text color is chosen automatically. Keep the ready-made message short and clear. Make sure the number is registered on WhatsApp and try the button from your own phone.

To remove the button, delete the whole block of code you pasted.

Free Tools

Frequently Asked Questions

Let AI Talk With Your Website Visitors