Chat Widget for WordPress
Install 7KB lightweight chat widget on your WordPress site in 2 minutes.
Zero tracking. Zero cookies. No plugin required.
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: Using "Insert Headers and Footers" Plugin
Easiest method - 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 2: 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?
7KB 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?
No. At 7KB, it's 20-40x smaller than most WordPress chat plugins. It loads asynchronously and won't impact your page speed.
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 "Insert Headers and Footers" 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.