Install ChatLM on WordPress Without a Plugin
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)
- Copy your embed code from the ChatLM dashboard.
- In WordPress go to Appearance → Theme File Editor (or use a child theme).
- Open
footer.phpand paste the script before</body>. - 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.