WhatsApp button for your website

Make a free floating WhatsApp chat button for your website. Enter your number, pick a color and a corner, and copy one block of code to paste before the closing body tag. Visitors tap it and a WhatsApp chat with you opens, with your message already typed.

Make your WhatsApp button

Position
Color
Show the button on
Credit

Preview

How to add the WhatsApp button to your website

Copy the code, then paste it once where it loads on every page, just before the closing </body> tag. The steps below follow each platform's own help pages.

Any HTML site

Open your page template, or each page that should show the button, and paste the code right before </body>. Upload the file and reload the page.

WordPress

In the block editor, add a Custom HTML block (type /html on a new line), click Edit HTML, paste the code and click Update. WordPress strips the code's styles when your user role cannot post unfiltered HTML, and on WordPress.com the style and input tags need a paid plan with hosting features turned on.

Shopify

From your Shopify admin, go to Online Store, open your theme's menu and select Edit code. Open theme.liquid, paste the code just before </body> and click Save. Shopify suggests duplicating your theme first as a backup.

Wix

In your site's dashboard, open Settings, then Custom Code under Development & integrations. Click Add Custom Code, paste the code, choose All pages, place it in Body - end and click Apply. Wix runs custom code only on a published site with a connected domain.

Squarespace

Open the Code Injection panel and paste the code in the Footer field, which Squarespace adds before </body> on every page, then click Save. Code injection is available on the Core, Plus and Advanced plans.

Tiendanube and Nuvemshop

Tiendanube retired its tracking code fields and recommends Google Tag Manager for scripts that change how a store looks, on paid plans only. Paste your Tag Manager ID under Configuración, Códigos externos (Configurações, Códigos externos on Nuvemshop). Then in Tag Manager add a Custom HTML tag with the code, trigger it on page views and publish the container.

What the code does

Using the WhatsApp name and logo

WhatsApp's brand guidelines set a few rules for showing its name and logo on your site. The button follows them:

Yapper is not affiliated with WhatsApp or Meta.

About the Yapper credit

By default the code adds a small "Button by Yapper" line under the button, linking to Yapper's home page. It is optional: untick Credit above and it is gone, with nothing else changing. The link text is only our name, it stays visible at the size you see in the preview, and it carries rel="nofollow", in line with Google's spam policies on links spread through widgets.

When the chats start coming in

A button brings the chats. Answering every one of them, at night and on weekends, is the hard part. Yapper replies to your WhatsApp conversations in your voice, learns your business from your own documents, and hands a chat to you the moment it needs a person.

Build my assistant free

Try it from your phone before you pay.

See how it works for salons, restaurants and vet clinics.

Related tools and guides

Frequently asked questions

Is this WhatsApp button free?

Yes. There is no signup, no limit and no account. The code is yours to keep, it keeps working without Yapper, and the small credit line is optional.

Does the WhatsApp button slow down my website?

No. It is a few kilobytes of HTML and CSS with the icon drawn inline. It loads no script, font or image, and makes no request until a visitor taps it.

What happens when a visitor taps the button?

It opens a wa.me link to your number in a new tab. On a phone that opens the WhatsApp app, on a computer WhatsApp Web or the desktop app, with your pre-filled message in the input box. The visitor still presses send.

Do I need WhatsApp Business to use the button?

No. Click to chat links work with any WhatsApp number, personal or business. Use the number your customers should reach, in full international format.

Can I show the button only on phones or only on computers?

Yes. Untick either screen type under "Show the button on". The code then hides the button on screens narrower or wider than 768 pixels.

Is the code safe to paste into my site?

Yes. It holds no script, and everything you type into the generator is escaped before it goes into the code, so a message or label cannot add markup or scripts to your page.

Can I remove the "Button by Yapper" credit?

Yes. Untick Credit before you copy the code, or delete the line with the Yapper link from the code you already pasted. The button works the same either way.

Sources

Checked November 10, 2026.