All articles

Install ChatLM on WordPress Without a Plugin

2026-05-22 · WordPress AI chat, embed chat WordPress, ChatLM widget

WordPress powers millions of sites — and you do not need a dedicated plugin to add an AI chat widget. ChatLM loads via one script tag, the same way you would add Google Analytics.

Method A — Theme footer (recommended)

  1. Copy your embed code from the ChatLM dashboard.
  2. In WordPress go to Appearance → Theme File Editor (or use a child theme).
  3. Open footer.php and paste the script before </body>.
  4. Save and clear any cache plugin.

Method B — Insert Headers and Footers plugin

If you prefer not to edit theme files, install “WPCode” or “Insert Headers and Footers”, paste the script in the footer section, and save.

Widget only visible when logged in as admin?

This is almost always page cache. Logged-in users bypass the cache and see the new script; guests see an old HTML snapshot without it. After adding the embed:

  • Purge LiteSpeed / WP Rocket / Hostinger cache
  • Purge CDN if you use Cloudflare
  • Test in incognito, not only in the admin bar preview

Also add your public site URL (not /wp-admin) to Allowed Origins in ChatLM.

Allowed Origins checklist

https://yourblog.com, https://www.yourblog.com

Next steps

Configure your AI key, welcome message, and optional Telegram alerts. Then run a test message as a guest user.

Get started free · See pricing

Ready to add the widget to your site?

Cadastre-se grátis