Abhinavdev Visitor Chat Widget

By Abhinav Saxena

0+ active installationsVersion 1.0.3

Connect directly with your website visitors via WhatsApp with a lightweight, customizable floating button and realistic chat popup.

Description

Abhinavdev Visitor Chat Widget provides an effortless and conversion-optimized way to connect with your website visitors through WhatsApp. Allow prospective customers and clients to initiate a conversation on WhatsApp with a single click, whether on desktop or mobile.

Key Features

  • Interactive Chat Popup Widget: Authentic WhatsApp-style chat box with customizable agent photo, support name, online status, and greeting bubble.
  • Direct Chat Mode: Prefer instant direct access? Toggle direct mode to launch WhatsApp immediately upon clicking the floating button.
  • Smart Dynamic Message Placeholders: Pre-fill WhatsApp messages with {page_title}, {page_url}, and {site_title} so you instantly know which product or article the visitor is inquiring about.
  • Targeting & Page Rules: Show or hide the widget on specific devices (Desktop, Mobile, or All) and page types (Entire Site, Homepage Only, Single Posts, Pages, WooCommerce Shop & Products, or exclude specific post IDs).
  • Business Working Hours: Set your operational hours for each day of the week. Choose to automatically hide the chat button or display an offline message outside business hours.
  • Conversion & Analytics Tracking: Built-in hooks for Google Analytics 4 (gtag), Google Tag Manager (dataLayer.push), and Meta Pixel (fbq) to measure chat engagement.
  • Shortcode Support: Embed inline chat buttons or links anywhere in Gutenberg blocks, Elementor, Divi, widgets, or posts using [abhinavdev_whatsapp_chat].
  • Zero Bloat & Blazing Fast: Built with pure vanilla JavaScript (no jQuery dependency on frontend) and inline SVG icons (no FontAwesome required). Lightweight footprint.
  • 6 Button Styles & Live Preview: Choose circle, rounded square, pill with label, speech bubble, outline or gradient. Preview exactly how it looks on desktop and mobile before saving.
  • Full Design Customization: Customize brand colors, positions (bottom-right, bottom-left, top-right, top-left), pulse animation, unread badgesand more.

Installation

  1. Upload the abhinavdev-visitor-chat-widget folder to the /wp-content/plugins/ directory, or install the plugin directly through the WordPress Plugins screen.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Navigate to Visitor Chat in your WordPress admin menu.
  4. Enter your WhatsApp phone number with your country code (e.g. 15551234567 or 919876543210).
  5. Customize your welcome greeting, colors, and business hours.
  6. Click Save Settings and you are ready to receive chats!

FAQ

How should I format my WhatsApp phone number?

Enter your full international phone number with the country code, without any plus signs (+), dashes (-), or parentheses. For example, for a US number use 15551234567, for UK use 447911123456, and for India use 919876543210.

Does this plugin work with WooCommerce?

Yes! You can choose to show the chat button exclusively on WooCommerce product pages and shop catalog pages. With {page_title} in your pre-filled message, inquiries automatically mention the exact product name.

Does this plugin slow down my site?

Not at all. The frontend assets are small and load only on pages where the widget is shown. It has zero external dependencies, no heavy fonts, and no frontend jQuery.

How do I embed a button inside a blog post or page?

Simply use the shortcode:
[abhinavdev_whatsapp_chat text=”Chat with our sales team”]

Does it work with caching plugins?

Yes. Device targeting, business hours and the {page_title} / {page_url} placeholders are resolved in the visitor’s browser, so WP Rocket, LiteSpeed, Cloudflare and other full-page caches always show the right state.

Does it collect any data?

No. The plugin stores only its settings. Click events are sent only to the analytics tools you enable (GA4, GTM, Meta Pixel) that are already on your site.

Changelog

1.0.3

  • Renamed to Abhinavdev Visitor Chat Widget.
  • Removed the Custom CSS setting; styling is controlled through colours, style and size options.
  • Shortcode renamed to [abhinavdev_whatsapp_chat].
  • Removed manual textdomain loading (handled by WordPress.org).

1.0.2

  • Fix: admin layout could break after updating because of cached stylesheets; assets are now cache-busted automatically.
  • Improved: more robust admin layout that is not affected by core WordPress styles; consistent controls, tidier preview toolbar and style picker.

1.0.1

  • New: 6 floating button styles (Classic Circle, Rounded Square, Pill with Label, Speech Bubble, Outline, Gradient Glow), 3 sizes and a custom button label.
  • New: live preview now runs the real widget code with Desktop / Mobile switch, chat open / offline toggles and a large preview mode.
  • New: redesigned premium admin (sidebar navigation, hero header with live status, card layout, sticky save bar with unsaved-changes indicator).
  • New: badge number setting (previously not editable).
  • Fix: chat popup no longer clips off-screen on phones.
  • Fix: widget now works correctly behind full-page caches (device targeting, business hours and dynamic tags are resolved client-side).
  • Fix: business hours now support overnight shifts (e.g. 22:00 – 02:00).
  • Fix: phone number is validated (8-15 digits) with an admin notice, and cleaned everywhere it is used.
  • Fix: unread badge no longer reappears after the visitor opened the chat.
  • Improved: timezone and excluded-ID validation.
  • Improved: respects prefers-reduced-motion; extra ARIA attributes.
  • Dev: shared helpers in core, new filters abhinavdev_c2c_should_display and abhinavdev_c2c_message.

1.0.0

  • Initial release.