WhatsApp Chat Button with QR Code
A floating WhatsApp button with a branded chat panel, a click-to-chat link and a scannable QR code. Fully customisable colours, text and position, with no page builder required.
by Afaz Alif · github.com/afaz2297/whatsapp-chat-button-with-qr-code · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/afaz2297/whatsapp-chat-button-with-qr-code/archive/refs/heads/main.zipA floating WhatsApp button for WordPress with a branded chat panel, a click to chat link and a scannable QR code. No page builder required.
Features
- Floating button, bottom left or bottom right, with adjustable size and spacing
- Chat panel with logo, title, status line, greeting bubble and call to action
- QR code support, shown on desktop only by default
- Six colour controls, so the widget can match any brand
- Optional ripple animation and automatic panel opening once per visit
- Display rules: all pages, front page only, or exclude specific page IDs
- Vanilla JS on the front end, no jQuery, assets loaded only when the button renders
- Keyboard accessible, Escape to close, reduced motion respected
- Translation ready
Installation
Download a release zip and upload it under Plugins → Add New → Upload Plugin, or clone this repository into wp-content/plugins/.
Then open Settings → WhatsApp Button and add your link, logo and QR code.
Developer notes
Filter the display logic:
add_filter( 'wcbq_should_display', function ( $display, $settings ) {
if ( is_page( 'checkout' ) ) {
return false;
}
return $display;
}, 10, 2 );
All settings live in a single option, wcbq_settings.
Requirements
- WordPress 6.5 or newer
- PHP 7.4 or newer
License
GPL-2.0-or-later. See LICENSE.
Author
Afaz Alif — LinkedIn