The three options, ranked by practical overhead
- Script tag in the theme header (recommended for most). One line of code added to your active theme's
header.php, or via a header-injection helper. No extra plugin. Works forever. - Header-injection plugin like "Insert Headers and Footers". A lightweight plugin whose only job is to let you paste a script tag into the site header from the WordPress admin. Use this if you don't want to edit theme files.
- A vendor-specific WordPress plugin. Some chat vendors ship a dedicated plugin. This adds another plugin to your site but saves you from touching any code.
All three work. The difference is surface area: a script tag is one line of code; a plugin is code someone else updates on their schedule.
Method 1: Script tag in the theme header (preferred)
This is the method most chat vendors actually recommend, even when they also offer a plugin. It's platform-agnostic: the same snippet works on any WordPress theme and most other site builders.
If you have direct theme access
- In the WordPress admin, go to Appearance → Theme File Editor.
- Open your active theme's
header.phpfile. - Paste the chat widget's
<script>tag just before the closing</head>tag. - Save. Reload your homepage in a private browser window to verify the widget appears.
If you use a child theme (you should), edit the child theme's header.php. If the child theme doesn't have a header.php, you can add one: copy the parent's file into the child theme directory first, then add the script tag.
If you don't want to touch theme files
Use a header-injection helper plugin. Insert Headers and Footers (by WPCode) is the most common. It does one thing: lets you paste a script into the site header from the WordPress admin, no code editing required. Install it, paste the chat widget's script tag in the Header section, save, and you're done.
Method 2: Vendor-specific plugin
Some chat platforms offer a dedicated WordPress plugin. The tradeoff:
- Pro: No code. Install the plugin, paste your account ID or API key in its settings page, done.
- Con: Another plugin to keep updated. Possible conflicts with caching or security plugins. Sometimes slower to load than a direct script tag.
Fine for owners who are allergic to code. For everyone else, the script-tag method is tighter.
What to test after install
Before telling anyone about it:
- Open in a private window. Verify the chat widget appears. If it doesn't, a caching plugin is probably serving a stale version. Flush the cache.
- Check mobile. Open the site on your phone. The chat widget should sit above the page footer and not cover important content.
- Ask three real questions. Questions you know the answers to, so you can spot bad replies. Hours, pricing, a specific service you offer.
- Test a question it shouldn't know. Does it admit uncertainty, or guess? Guessing is the red flag.
Common WordPress gotchas
- Aggressive caching. WP Rocket, W3 Total Cache, and most CDN plugins cache the page HTML. After you add the chat script, flush the cache or the widget won't appear for visitors.
- Content Security Policy plugins. A CSP plugin may block the chat widget's script from loading. Either add the chat domain to your CSP allowlist or disable the CSP plugin temporarily to confirm the issue.
- Theme updates overwriting
header.php. If you edit the parent theme directly, a theme update wipes your changes. Always use a child theme or a header-injection plugin. - Cookie consent banners. If the chat widget loads before the visitor accepts cookies, some consent tools will block it. Configure your consent banner to allow the chat widget's domain.
How Simple Business Bots works on WordPress
The Simple Business Bots widget is a single <script> tag. No plugin required. Paste it into your theme's header.php or into a header-injection helper, and the chat widget appears on every page. Your dashboard (the place where you read conversations, manage FAQ entries, and take over live chats) is a web app on our side, not part of WordPress. Nothing on your site to update, no plugin to maintain.