A powerful and flexible WhatsApp chat widget for your website.
WhatsApp Chat Support is a versatile plugin that adds a floating WhatsApp chat widget to your website. It supports multiple agents, customizable appearance, and is available both as a jQuery plugin and a WordPress plugin.
<link rel="stylesheet" href="src/jquery/whatsapp-chat-support.animations.css">
<link rel="stylesheet" href="src/jquery/whatsapp-chat-support.css">
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="src/jquery/whatsapp-chat-support.js"></script>
<div id="wacs"></div>
$('#wacs').whatsappChatSupport({
title: 'Chat Support',
subtitle: 'How can we help?',
agents: [{
name: 'John Doe',
role: 'Support Agent',
phone: '15551234567'
}]
});
The plugin is initialized with the following syntax:
$(selector).whatsappChatSupport(options);
$('#wacs').whatsappChatSupport({
title: 'Chat Support',
subtitle: 'Click one of our representatives below',
position: 'right',
agents: [{
name: 'John Doe',
role: 'Customer Support',
phone: '15551234567',
avatar: 'path/to/avatar.jpg',
prefilledMessage: 'Hi, I have a question about...'
}]
});
Configure the widget in WordPress admin under Settings > WhatsApp Chat:
You can add the widget anywhere using the shortcode:
[wacs]
With custom attributes:
[wacs position="left" title="Chat with us"]
| Option | Type | Default | Description |
|---|---|---|---|
| title | string | 'WhatsApp Chat Support' | Widget title text |
| subtitle | string | 'Click one of our representatives below to chat' | Widget subtitle text |
| position | string | 'right' | Widget position ('left' or 'right') |
| offsetX | number | 20 | Horizontal offset from the edge |
| offsetY | number | 20 | Vertical offset from bottom |
| buttonBackground | string | '#25d366' | Button background color |
| buttonColor | string | '#ffffff' | Button icon color |
| autoOpen | boolean | false | Auto-open widget on page load |
| openInNewTab | boolean | true | Open WhatsApp in new tab |
| Option | Type | Required | Description |
|---|---|---|---|
| name | string | Yes | Agent's name |
| phone | string | Yes | WhatsApp number with country code |
| role | string | No | Agent's role or department |
| avatar | string | No | URL to agent's avatar image |
| prefilledMessage | string | No | Default message when starting chat |
$('#wacs').whatsappChatSupport({
title: 'Need Help?',
subtitle: 'Chat with our support team',
agents: [{
name: 'John Support',
role: 'Customer Service',
phone: '15551234567',
prefilledMessage: 'Hi, I need help with...'
}]
});
$('#wacs').whatsappChatSupport({
title: 'Contact Us',
subtitle: 'Choose a department below',
position: 'left',
offsetX: 30,
buttonBackground: '#25d366',
buttonColor: '#fff',
agents: [{
name: 'Sales Team',
role: 'Sales & Pricing',
phone: '15551234567',
avatar: 'https://example.com/sales-avatar.jpg',
isOnline: true,
prefilledMessage: 'Hi, I\'m interested in your products'
}, {
name: 'Tech Support',
role: 'Technical Help',
phone: '15559876543',
avatar: 'https://example.com/support-avatar.jpg',
isOnline: false,
prefilledMessage: 'Hi, I need technical assistance'
}]
});
Enter the full phone number including country code, without spaces or special characters (e.g., "15551234567" for US number +1 (555) 123-4567).
Yes, you can initialize the widget on multiple containers with different configurations.
Ensure jQuery is loaded before the plugin script and check browser console for any errors.
You can override the CSS classes in your stylesheet or use the provided color and position options.
For support, bug reports, or feature requests, please contact us through: