WhatsApp button for your website

A floating WhatsApp chat button that knows your opening hours. Visitors see when you are open, in your time zone, and tap once to message you. Copy one snippet into your site.

Your button

Pick the country, then type the number the way you would dial it locally.

Typed in for the visitor when the chat opens.

Opening hours are checked in this zone, wherever your visitor is.

Opening hours

  • to
  • to
  • to
  • to
  • to
  • Closed
  • Closed

Preview

yourwebsite.com

Right now it is closed in UTC.

Code for your website

Paste it just before </body> on every page, or in your site builder's custom code box.

How to use it

  1. 1

    Add your number

    And a message to fill in for the visitor, if you like.

  2. 2

    Set your hours

    Pick your time zone and the hours you reply for each day.

  3. 3

    Paste the code

    Copy the snippet into your website, just before the closing body tag.

How it knows you are open

The button checks the time in your time zone, not the visitor's. A visitor in London looking at a shop in Mumbai sees the shop's real status. It checks again every minute while the page is open.

Hours that end after midnight work too: set Friday from 18:00 to 02:00 and the button stays open into Saturday morning.

When you are closed, the button can show a different line, like "Closed now, we reply in the morning", or hide completely. People who still message you will see your reply when you are back.

Where to paste the code

  • WordPress: a plugin for header and footer code, or your theme's footer.php, just before </body>.
  • Shopify: Online Store, then Themes, then Edit code, and theme.liquid before </body>.
  • Wix, Squarespace and Webflow: the custom code setting for the whole site, in the footer or body end.
  • Your own HTML: before </body> on each page.

Questions

Something else? Ask us.

Is this WhatsApp button free?

Yes. The code is yours to keep. It does not load anything from WhatSync or anywhere else, so it keeps working even if this page changes.

Will it slow down my website?

No. It is one small inline script with no files to download, and it draws a single button.

Does it need a WhatsApp Business account?

No. It uses a normal wa.me link, which works with personal WhatsApp, the WhatsApp Business app and the WhatsApp Business API.

Can people message me when I am closed?

Yes, unless you choose to hide the button. Closed only changes the text, so set your auto-reply in WhatsApp Business if you want to answer straight away.

How do I change my hours later?

Make a new snippet here and replace the old one on your site.

Does it handle daylight saving time?

Yes. The button uses your time zone's name, like Europe/London, so the browser applies daylight saving for you.

Answer your WhatsApp from ChatGPT or Claude

WhatSync connects your WhatsApp to your AI apps. Ask who is waiting for a reply, draft answers, and send messages without switching apps.