Skip to main content
🔥 90 days freeRequest access
Konectus

Setup guide · WordPress

WhatsApp button for WordPress

Set up your floating button below, copy the code and paste it into your WordPress site with one of the methods in this guide. Free, no sign-up, no plugin required.

With country code, digits only. E.g.: 5215512345678

Position
Size

Preview

This is how it will float on your site

Your code

Paste it before '</body>' on your page. Works on WordPress, Shopify, Wix and any HTML.

<!-- Botón de WhatsApp — konectus.io/boton-whatsapp-web -->
<a href="https://wa.me/5215512345678" target="_blank" rel="noopener" aria-label="WhatsApp"
   style="position:fixed;bottom:24px;right:24px;z-index:9999;display:flex;align-items:center;justify-content:center;width:60px;height:60px;border-radius:50%;background:#25D366;box-shadow:0 4px 14px rgba(0,0,0,.25);transition:transform .15s ease;"
   onmouseover="this.style.transform='scale(1.08)'" onmouseout="this.style.transform='scale(1)'">
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="33" height="33" fill="#fff" aria-hidden="true"><path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z"/></svg>
</a>

Step by step

How to add the button to WordPress with the Site Editor

For block themes (Appearance shows “Editor”). It goes into the footer template part, so it shows on every page that uses it.

  1. 1

    Copy the button code

    Enter your number and message in the generator above, pick the side and size, and click “Copy code”.
  2. 2

    Open the footer template part

    In your WordPress dashboard, go to Appearance → Editor → Patterns and, among the template parts, open the footer.
  3. 3

    Add a Custom HTML block

    Click the block inserter (+) and choose Custom HTML. Shortcut: type /html in a new paragraph and press Enter.
  4. 4

    Paste the code

    Click Edit HTML, paste the code and click Update. You'll see a preview to the right of the code editor.
  5. 5

    Save and check your site

    Click Save. Open your site in another tab: the button shows up in the corner you picked.

If you use a classic theme: a widget or a plugin

If Appearance shows “Widgets” instead of “Editor”, your theme is a classic one. You have two options:

  • With a widget. Go to Appearance → Widgets (or Appearance → Customize → Widgets), add a Custom HTML block to a widget area that shows on every page, such as the footer, paste the code and save. Your theme defines the areas: according to WordPress, they're usually in the sidebar or footer and vary from theme to theme.
  • With a code snippets plugin. From Plugins → Add New, add one that inserts code into the header and footer of the whole site, such as WPCode: it's free in the official directory and has more than 3 million active installs. From its Code Snippets menu, paste the code into the footer section and save it.
  • If it doesn't show up with any footer method, check your theme: according to the developer documentation, the wp_footer hook, which adds code at the end of the page, depends on the theme author including it.

After the button

Who answers the chats your website brings in?

The button takes your visitors to a chat with your number. If several people handle that number, the Konectus shared inbox splits the chats and each one has an owner.
  • One WhatsApp number, handled by your team
  • Every conversation has an owner
  • Quick replies for the questions you always get
See the shared inbox

Shared inbox demo: a message from Mariana Ortiz comes in on WhatsApp, AI summarizes the conversation and suggests replies, and an automation assigns it to Karla. When Karla asks, the AI Assistant proposes a tag that is only applied once approved and can be undone. Karla sends a suggested reply and moves the conversation to the “Appointment to confirm” pipeline stage.

A new conversation in the inbox, still unassigned

Questions about the WhatsApp button on WordPress

Will the button slow down my WordPress site?

Not noticeably. It's a single link of about 2 KB with the icon drawn in the code itself: it doesn't download scripts, fonts or images from another server, and it adds nothing to your WordPress setup.

Does it work on mobile?

Yes. The button stays fixed in the corner of the screen on mobile too. Tapping it opens the WhatsApp app; on a computer, WhatsApp Web. If your theme has something else fixed in that corner, such as a back-to-top button, switch sides in the generator and paste the code again.

How do I remove it?

Delete the Custom HTML block, widget or plugin snippet where you pasted it, and save. If you use a caching plugin, clear the cache to see the change.

Why did the code disappear when I saved?

Most likely it's permissions: if your user doesn't have the unfiltered_html capability, WordPress cleans up the HTML when you save. Ask an administrator to paste it. On a multisite network, only the Super Admin can.

What if I'd rather use a WhatsApp plugin?

That works too. The official plugin directory has WhatsApp chat plugins, and some add business hours or several numbers. Before adding one, check when it was last updated and which WordPress version it was tested with. This code is the no-plugin option: there's nothing to keep updated.

Do I need a Konectus account?

No. The button opens a direct chat with your WhatsApp number: it doesn't go through Konectus and works even if you never sign up. Konectus has no plugin or integration for WordPress; this page only explains where to paste the code.

Your website brings in the chats; your team answers them

Early Access: 90 days free, no card, every feature. Subscribe within that window and you pay half for life.

90 days free · No card