Chat Widget for WordPress
Install 3KB lightweight chat widget on your WordPress site in 2 minutes.
Zero tracking. Zero cookies. Official plugin available.
Quick Install (2 Minutes)
- 1.
Sign up free and get your Site ID from the dashboard.
Sign Up Free → - 2.
Go to Appearance → Theme File Editor (or use FTP/cPanel)
Open
footer.php - 3.
Paste this code before the closing
</body>tag:<script src="https://api.thechatwidget.com/widget.js" data-site="YOUR_SITE_ID" defer></script> - ✓
Done! The widget appears on all pages automatically.
Alternative Installation Methods
Method 1: WordPress Plugin (Easiest)
Install our official WordPress plugin from the WordPress plugin directory.View on WordPress.org →
- 1. Go to Plugins → Add New in your WordPress admin
- 2. Search for "The Chat Widget" or install directly from WordPress.org
- 3. Click Install Now and then Activate
- 4. Go to Settings → The Chat Widget and paste your Site ID
- 5. Save and you're done!
✨ Smart paste detection: You can paste the entire script tag and the plugin will automatically extract your Site ID!
Method 2: Using "Insert Headers and Footers" Plugin
Good alternative - no code editing required.
- 1. Install the "Insert Headers and Footers" plugin from WordPress.org
- 2. Go to Settings → Insert Headers and Footers
- 3. Paste your script tag in the "Scripts in Footer" section
- 4. Click Save
Method 3: Using functions.php (Advanced)
Add via your theme's functions.php file.
function add_chat_widget() {
?>
<script src="https://api.thechatwidget.com/widget.js" data-site="YOUR_SITE_ID" defer></script>
<?php
}
add_action('wp_footer', 'add_chat_widget');⚠️ Note: Use a child theme to prevent updates from overwriting your changes.
Why Choose This Over WordPress Chat Plugins?
3KB vs 50-200KB plugins
Most WordPress chat plugins are 20-40x larger and slow down your site.
No plugin bloat
One line of code. No database tables, no admin menus, no updates to manage.
GDPR-friendly by default
Zero tracking, zero cookies. No cookie banner needed.
Works with any theme
Compatible with all WordPress themes - no conflicts, no styling issues.
Common Questions
Will this work with my WordPress theme?
Yes! The widget works with all WordPress themes. It's just a script tag that loads independently.
Do I need to add it to every page?
No. Add it once to your footer.php (or via plugin) and it appears on all pages automatically.
Will it slow down my WordPress site?
It's designed to minimize impact. At 3KB, it's 20-40x smaller than most WordPress chat plugins and loads asynchronously, so it typically won't affect page speed for most sites.
What if I switch themes?
If you added it to footer.php, you'll need to add it again to your new theme's footer.php. Using the plugin avoids this issue.
Does it work with WooCommerce?
Yes! It works on all WordPress pages including WooCommerce product pages, cart, and checkout.
Ready to Add Chat to Your WordPress Site?
Sign up free and have your chat widget live in 2 minutes. No credit card required.