Website Chat Button
Floating button
A round WhatsApp button that stays on screen while visitors browse. Works on any WordPress site.
Open Core setup → Floating button. Main options:
| Option | What it does |
|---|---|
| Show on the whole website by default | On = visible everywhere. Off = hidden everywhere unless you force it on a page. |
| Side & distance from bottom | Left or right corner, and how far from the bottom edge. |
| Size & colours | Button size, background and icon colours. |
| Label | Optional text next to the icon, e.g. “Chat with us”. |
| Devices | All devices, phones and tablets only, or desktop only. |
| Prefilled message | The text that appears in WhatsApp. Placeholders: {site_name} {page_title} {page_url}. |
| Button style | Simple button, or Chat popup (see below). |
The Floating button tab shows colour, size, label and side while you edit, so you can see the result before saving.
Per-page control
Every page, post, product and other public content type gets a WhatsApp floating button box in the editor sidebar:
- Use global setting: follow the default.
- Always show on this page: show even if the default is off or display rules would hide it.
- Hide on this page.
The shop page and blog page use the box of their own page.
Different number or message per page
Free
The same editor box has an optional WhatsApp number and prefilled message for that page (tokens: {site_name} {page_title} {page_url}). The same number is used for the page’s order button. Good for sending a “Sales” page to your sales team.
Developers can also use the ck_float_visible filter.
Chat popup with agents
Instead of one button, show a small chat window where visitors pick who to talk to.
On the Floating button tab choose Chat popup as the button style. Visitors tap the launcher, see your greeting, and pick an agent. WhatsApp opens with your prefilled message.
Adding agents
1 agent Unlimited
In Agents, write one agent per line, with parts separated by |:
Name | Role | Phone | Hours | Days
Sara | Sales | 923001234567 | 09:00-18:00 | Mon-Fri
Omar | Support | | 18:00-02:00 | Mon,Tue,Sat
- Phone empty = your main WhatsApp number.
- Hours and Days are optional. Empty = always online.
- Overnight shifts such as
18:00-02:00are supported. - Times follow your WordPress timezone (Settings → General).
- Online / offline badges update in the visitor’s browser, so page caching does not break them.
When every agent is offline, your offline message is shown. Visitors can still message an offline agent.
Lead form
Pro
Ask visitors for details before WhatsApp opens. Choose name, name + email, or name + email + phone. Details are saved once per browser session. Add a consent sentence to show a required GDPR checkbox. Saved leads appear under Leads.
Other Pro popup options
Grid layout, dark theme and auto-open (the popup opens by itself after a delay).
Look & behaviour
🎨 Icon library
WhatsApp (Free), chat bubble, headset, message dots, paper plane, or your own https image (Pro).
✨ Attention effect
Pulse, bounce, shake or ring. Automatically off for visitors who prefer reduced motion.
💭 Call-to-action bubble
A small message next to the button after N seconds. Visitors can close it, and it stays closed for the visit.
🔴 “1” badge
A notification dot until the chat is opened.
📱 QR code
In the chat popup on desktop, visitors can scan with their phone. Generated in the browser (no external service). Holds the first agent's link; long messages are dropped from the code automatically.
🔀 Number routing Pro
List extra numbers. The simple button, #whatsapp links and WooCommerce orders pick a random number or take turns (round-robin).
Display rules & triggers
Control where, to whom and when the button appears. Open Core setup → Display rules.
A page set to Always show in its editor box ignores these rules.
| Rule | Plan | How it works |
|---|---|---|
| URL include / exclude | Free | One pattern per line; * is a wildcard, matched against path and query. Examples: /shop/*, /contact/, /product/*?ref=ad |
| Content types; logged-in / logged-out | Free | Pick post types and whether members, guests or both see the button. |
| User roles | Pro | Show only to chosen WordPress roles. |
| Country | Pro | From your CDN header (Cloudflare CF-IPCountry, CloudFront, Vercel) or WooCommerce geolocation. If unknown, the button is shown. |
| Traffic source | Pro | Paid ads / search / social / other site / direct, decided from the first page of the visit (utm_medium, gclid, fbclid, referrer). |
| Date range | Pro | Show only between two dates (site timezone). Great for sales campaigns. |
| Triggers | Pro | Show after N seconds, after scrolling N %, or on exit intent (desktop). The button stays hidden until the first enabled trigger fires. |
Rules about the visitor (URL, login, source, dates, triggers) run in the browser, so they work with page caching. Role and country rules are decided on the server: with full-page caching, a cached copy could be shown to the wrong visitor. Exclude those pages from caching, or avoid these two rules.
Shortcode, block, Elementor & anchor links
Place a WhatsApp button anywhere in your content. All work without WooCommerce and are Free.
Shortcode
[ck_chat text="Chat with us" phone="923001234567" message="Hi! I need help" icon="yes" class="my-class"]
All attributes are optional. ([ck_button id="123"] is a different shortcode: the WooCommerce product order button. See Themes.)
Gutenberg block
Search for WhatsApp Chat Button in the block inserter (Widgets category). Set text, number, message and icon in the sidebar.
Elementor widget
WhatsApp Chat Button (needs Elementor 3.5 or newer).
Anchor links: turn any link into a WhatsApp link
Works in menus and page builders. Use any one of these:
| Opens | Use any of |
|---|---|
| WhatsApp (page’s number and message) | href="#whatsapp" · class ck-whatsapp · attribute data-ck-whatsapp (optional data-phone, data-text) |
| The chat popup (or WhatsApp if popup style is off) | href="#ck-chat" · class ck-open-chat · attribute data-ck-open |
<a href="#whatsapp" data-phone="923001234567" data-text="Hello!">Message us</a>
