Description
FairShare Click-to-Chat adds a fast, conflict-free floating click-to-chat button for WhatsApp to any WordPress site. Set it up once in under a minute and run it for years with zero external scripts, zero jQuery, and zero theme conflicts.
Key Features
- Shadow DOM Style Isolation: Renders inside an isolated Shadow DOM root (
all: initial) so Divi, Elementor, WooCommerce, and theme CSS resets never break your button — and the button never breaks your site. - Live Scrollable Site Preview (Desktop & Mobile): Switch between your site’s real published pages inside Settings > Click-to-Chat and scroll through live visitor-view Desktop (
1280px) and Mobile (390px) windows while adjusting position, style, and color. - Page Builder Friendly: Automatically pauses inside Divi Visual Builder, Elementor Editor, Customizer, Beaver Builder, Bricks, and Oxygen so it never covers editor controls.
- 3 Clean Styles: Pick Icon only, Pill + text, or an interactive Chat card with a custom greeting bubble.
- Accessible by Default: Automatically calculates WCAG AA foreground contrast for any brand color, supports
Escapekey dismissal, respectsprefers-reduced-motion, prevents sticky mobile hover, and honors iOS safe areas. - Smart Message Placeholders: Pre-fill messages with
{title},{url}, and{site}so you know which page a visitor is messaging from. - Inline Shortcode: Embed a matching button anywhere with
[fairshare_chat_button]. - Zero Bloat: One deferred vanilla JS file on the frontend, no cookies, no tracking, and one non-autoloaded option row in
wp_options.
Credits & Maintainers
Developed and maintained by FairShare — practical, zero-bloat WordPress plugins, performance engineering, and web tooling.
Monitored for uptime, SSL, and safe WordPress updates with WebsitesWatch.
Looking for more lightweight WordPress tools or website monitoring? Visit fairshare.tech and websiteswatch.com.
Source Code
All PHP, JavaScript, and CSS files shipped in this plugin are unminified, human-readable source files with no build step or external dependencies.
External Services
This plugin does not connect to any external APIs, analytics platforms, or author servers.
When a visitor clicks the chat button or card link, their browser opens a standard click-to-chat link on WhatsApp (https://wa.me/) containing the site owner’s configured phone number and optional pre-filled message. No visitor data is collected or transmitted until the visitor clicks the link. Use of WhatsApp is governed by the WhatsApp Terms of Service and WhatsApp Privacy Policy.
Trademark Disclaimer
FairShare Click-to-Chat is an independent plugin and is not affiliated with, endorsed by, or sponsored by WhatsApp LLC or Meta Platforms, Inc. WhatsApp is a registered trademark of Meta Platforms, Inc.
Installation
- Install FairShare Click-to-Chat from Plugins > Add New in WordPress (or upload
fairshare-click-to-chat-shield.zip). - Activate the plugin.
- Open Settings > Click-to-Chat.
- Enter your phone number with country code (digits only, no
+or spaces), preview the button live on your own pages in Desktop and Mobile windows, and click Save changes.
FAQ
-
Does this plugin slow down my website?
-
No. It loads one deferred vanilla JavaScript file under 4 KB on the frontend, with zero external stylesheets, fonts, or third-party scripts.
-
Does it work with Divi, Elementor, and block themes?
-
Yes. Shadow DOM isolation keeps it unaffected by theme and page builder CSS, and it automatically hides while you are editing pages in visual builders.
-
Add
[fairshare_chat_button]anywhere. You can also override attributes:[fairshare_chat_button label="Message Us" phone="919876543210"]. -
Why does the preview offer a Wireframe toggle?
-
If your server sends an
X-Frame-Options: DENYor restrictiveframe-ancestorsheader, click Wireframe in the preview toolbar. On standard WordPress setups (SAMEORIGIN), your live pages render and scroll directly inside both windows. -
No. It sets no cookies and stores no visitor data or analytics.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“FairShare Click-to-Chat” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “FairShare Click-to-Chat” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.2.0
- Simplified plugin display name to FairShare Click-to-Chat.
- Fixed page selector dropdown styling inside WordPress admin and eliminated duplicate save notices using a Post/Redirect/Get flow.
- Hid the WordPress admin bar inside live preview iframes so previews match the visitor experience, and added a one-click Test link button and unsaved-changes indicator.
- Added defensive client-side URL and color validation in the Shadow DOM widget.
1.1.0
- Added real scrollable site preview inside Settings with a published-page selector for both Desktop (1280px) and Mobile (390px) viewports, plus an instant Wireframe toggle.
- Refined Admin and Frontend UI to a strict 4px spacing grid, nested radii, corner-anchored Chat Card
transform-origin,cubic-bezier(0.23, 1, 0.32, 1)motion curve, touch-gated:hoverstates, and iOS input zoom prevention.
1.0.0
- Initial public release with Shadow DOM isolation, live Desktop & Mobile preview studio, WCAG AA auto-contrast, progressive disclosure settings, and
[fairshare_chat_button]shortcode.
