WordPress
Three ways to do this. Use the first one that fits.
Option 1 — A header/footer scripts plugin (recommended)
The safest route, because it survives theme updates.
- Install a plugin such as WPCode or Insert Headers and Footers
- Open its settings
- Paste your snippet into the Footer or Body section — not the header
- Save
Done. The widget appears on every page.
The snippet loads asynchronously either way, so it will work in the header too.
Footer is the convention and keeps your <head> tidy.
Option 2 — Theme customizer
Some themes — Astra, GeneratePress, Kadence and many commercial themes — have a built-in code injection area.
Look under Appearance → Customize for a section named Custom Code, Scripts, or Footer Code. Paste the snippet there and publish.
Option 3 — Editing the theme directly
Only if neither of the above is available.
Editing a parent theme's files means the next theme update silently deletes your snippet. Always do this in a child theme.
- Appearance → Theme File Editor
- Open
footer.php - Paste the snippet immediately before
</body> - Update the file
WooCommerce
The widget works on WooCommerce stores with no extra setup.
Consider whether you want it on the checkout page. A floating chat bubble during payment can be a helpful reassurance or an unwanted distraction, depending on your audience. If you want it off checkout, use a plugin that supports conditional display rules rather than site-wide injection.
Caching plugins
If you use WP Rocket, W3 Total Cache, LiteSpeed Cache or similar, clear the cache after adding the snippet. Otherwise visitors keep getting the old cached page without it, and you will conclude the install failed when it did not.
Also check any combine or defer JavaScript optimisation settings. Aggressive JavaScript optimisation occasionally interferes with third-party scripts. If the widget does not appear, temporarily disable those options to test whether they are the cause.
It is not showing up
- Clear your caching plugin's cache
- Hard-refresh the page (
Ctrl+Shift+R) - View the page source and search for
ChatbotConfig— if it is not there, the snippet was not saved where you thought - Open the browser console and read any errors