Prompt
How do I embed a chat widget on a WordPress site?
Latest observation
Nov 1, 2026
OpenAI APIWeb search: off
To embed a chat widget on a WordPress site, the exact steps depend on the chat service you’re using, but the general process is usually one of these:
Option 1: Use a plugin
This is the easiest method.
- In WordPress, go to Plugins → Add New.
- Search for your chat provider’s plugin or a general live chat plugin.
- Install and activate it.
- Connect your account or paste your widget ID/API key.
- Save changes and test the chat bubble on your site.
This works well for services like Tawk.to, Crisp, Intercom, Zendesk, HubSpot, etc.
Option 2: Add the embed code manually
If your chat provider gives you a JavaScript snippet:
- Copy the embed code from the chat provider dashboard.
- In WordPress, go to one of these places:
- Appearance → Theme File Editor → header.php
- or a safer method: use a plugin like Insert Headers and Footers or WPCode
- Paste the chat script before the closing
</body>tag, or into the site header if the provider says to. - Save changes.
- Refresh your site and confirm the widget appears.
Example:
<script>
// chat provider script here
</script>
Option 3: Use a page builder or custom HTML block
If you only want the widget on a specific page:
- Edit the page in WordPress.
- Add a Custom HTML block.
- Paste the embed code.
- Update the page.
Note: some scripts may not run properly inside page content, so header/footer injection is often better.
Best practices
- Use a plugin or header/footer injection instead of editing theme files directly.
- Test on desktop and mobile.
- Check for caching/minification conflicts if the widget doesn’t appear.
- If you use a cookie consent plugin, make sure the chat widget complies with your privacy settings.
If you want, I can also give you exact instructions for a specific chat provider like Tawk.to, Crisp, Intercom, or WhatsApp chat.