Skip to main content

Free WhatsApp widget for your website

Give visitors a direct way to ask about your products or services. Add a free WhatsApp button to your website and reply in WhatsApp or WhatsApp Business. Choose a style, preview it and copy the code.

Use your existing WhatsApp number. No Oakready account needed.

Florist arranging cream flowers by the shop window
Fictional florist website with a floating WhatsApp button

Quick WhatsApp button

Enter your number, choose a size and copy the code for your website.

Start with 0 for a UK number, or + and the country code for an international number. Anyone who visits your website can see the number.

Button size

Let visitors hide the WhatsApp button.

Customise your WhatsApp button

Set your number, pre-filled message, button position and opening hours, then test the chat link in the preview.

Contact details

Use your local number or paste the full international number. Your number will be visible in the embed code and chat link.

Visitors can edit this in WhatsApp before sending.

Button appearance

Let visitors hide the WhatsApp button.

Opening hours

Live button preview

Enter a WhatsApp number to test the chat link.

Add it to your site

Enter your WhatsApp number to create your code and link.

See installation steps for your website platform

Compare WhatsApp website icons

Bicycle mechanic working on a wheel at the repair bench
WhatsApp button on a fictional bike shop websiteThe labelled button wraps its text on narrow screens, and the icon-only button stays the same size. Use the same code on mobile and desktop.

The wider button pairs the WhatsApp icon with a label like “Chat on WhatsApp”. Choose it when you want visitors to see at a glance how to get in touch.

Keep your existing button design. Choose Copy chat link in the custom builder and use it as that button’s destination. Opening hours you set for the floating button do not apply to the link.

Create a chat link

How do I add a WhatsApp button to my website?

Create your button above, copy the embed code and add it to your website using the steps for your platform below. If your editor cannot run scripts, use the chat link on an ordinary button instead.

  1. Enter your WhatsApp number

    Use the public number you want customers to message, including its country code.

  2. Choose how it looks

    Pick an icon or a labelled button, choose a corner and set opening hours if you need them.

  3. Copy the code into your site

    Use the guide for your website platform. Open your published site on a phone and test the button.

Choose your website platform

WordPress
  1. Install and activate WPCode on a site that supports plugins and custom code.
  2. Open Code Snippets → Header & Footer and paste the complete embed code into Footer.
  3. Save Changes, then open a published page outside the editor. Check that the button opens the right WhatsApp chat.

WordPress.com custom-code access depends on your plan. If it is unavailable, add a Buttons block and use your chat link as its destination.

WordPress help guide (opens in a new tab)
Shopify
  1. Open Online Store → Themes and duplicate your theme so you have a backup.
  2. On the duplicate theme, open its actions menu and choose Edit code.
  3. Open Layout → theme.liquid. Paste the complete embed code immediately before the closing </body> tag, then save.
  4. Preview the theme and check the button on a phone and a computer. If you edited an unpublished theme, publish it when you are ready.

This adds the button to storefront pages that use this layout, not Shopify checkout. Recheck it after changing or updating your theme.

Shopify help guide (opens in a new tab)
Wix
  1. In your site dashboard, open Settings. Under Development & integrations, choose Custom Code, then Add Custom Code.
  2. Paste your embed code. Choose All pages and load the code on each page a visitor opens. Select Body - end, apply, and test on the published site.

Custom Code needs a published site with a connected domain. You can also add the chat link to an ordinary Wix button.

Wix help guide (opens in a new tab)
Squarespace
  1. Find Code Injection in your site’s settings and paste your embed code in Footer.
  2. Save, then open your published site to test the button.

Footer Code Injection needs a plan that supports custom code. A normal Squarespace button can use the chat link.

Squarespace help guide (opens in a new tab)
Webflow
  1. Open Site settings → Custom code and paste your embed code into Footer code.
  2. Save changes, publish the site, and test the button on the published page.

Custom code needs an eligible Workspace plan or an active Site plan.

Webflow help guide (opens in a new tab)
Another platform or plain HTML
  1. Paste your embed code just before </body> in the template your pages use, or in your site’s footer code box.
  2. Publish and test from a phone and a desktop browser.

If your website blocks scripts, paste the chat link into an ordinary button.

Check it before customers use it

  • The chat opens with the business number you intended.
  • The button stays clear of your cookie controls and other floating buttons.
  • Any opening hours use your business time zone.
  • The pre-filled message makes sense. Visitors can edit it before sending.

Added to a WordPress test site

WordPress test page with the green Chat on WhatsApp button in the bottom-right corner.

If your WhatsApp button is not working

The button does not appear

Open the published page, not just the editor. If you set opening hours, check the days, times and time zone. If you closed the button, reload the page. If it is still missing, check that your editor saved the whole script.

My editor removes or blocks the code

Use Copy chat link and add that link to an ordinary button in your editor. If you need the floating version, ask your website provider whether custom scripts are supported.

It opens the wrong number, or the number is unavailable

Check the full number shown in the builder, including its country code. Use a number with an active WhatsApp account, then replace the old code or link. The builder checks the number’s format; it cannot confirm that the account exists.

The button covers something on my page

In the custom builder, move it to the other bottom corner and copy the new code. Check on a narrow screen. If both corners are busy, use a chat link on an existing button instead.

My changes are not showing

Replace the previous embed code rather than adding a second copy. Save and publish the page or theme you edited, then reload it. A change made here does not update code already installed on your website.

These reviews are about Oakready’s website design and build service. Some reviews mention prices from earlier projects.

The OakReady Reviews.

1 of 3. Kate is first in view.

Questions about the WhatsApp widget

Is the WhatsApp widget free?

Yes. You can customise the button and copy the code or chat link for free without creating an Oakready account.

Can I use my existing WhatsApp number?

Yes. Enter the public number you want customers to reach, including its country code. Use a number that already receives messages in WhatsApp or WhatsApp Business.

Do visitors chat on my website or in WhatsApp?

The button opens WhatsApp or WhatsApp Web with a chat addressed to your number. Visitors type a message, or edit the pre-filled text, then choose to send it. You reply in WhatsApp or WhatsApp Business. This widget does not add an inbox or chatbot to your website.

What happens to the number I enter?

Your embed code and chat link are created in your browser. Both contain the number you enter, so use a number you are happy to make public. Your pre-filled message is included too.

Can I hide the button outside opening hours?

Yes. Choose your open days, times and business time zone. The schedule controls when the floating button appears on your site.

Can I use this as a WhatsApp link generator?

Yes. Enter your WhatsApp number, add a pre-filled message if you want one and choose Copy chat link. Use the wa.me link as the destination of a button in your website editor. Opening hours you set here do not apply to the link.

What if my website editor blocks scripts?

Choose Copy chat link and use it as the destination of an ordinary button in your editor. It opens the same WhatsApp chat without adding a script to your page.

Can I change the number or style later?

Yes. Enter your settings here again, copy the new embed code and replace the previous code on your website. If you use the chat link, copy it again after changing the number or message.

Does it work on phones and computers?

The button uses WhatsApp’s click-to-chat link, which works on phones and WhatsApp Web. Visitors need to use WhatsApp to send their message; the conversation does not take place inside your website.

Do I need an API key or an Oakready account?

No. You can generate the button without an API key or an Oakready account. You do need an active WhatsApp or WhatsApp Business number where you can receive and answer messages.

Create your WhatsApp button
Chat with us on WhatsApp (opens in a new tab)