The easiest way to add Yaplet to a WordPress site is through the official Yaplet Live Chat plugin on WordPress.org. It adds the widget to every page on your site automatically, survives theme updates, and doesn't require any code editing.
1. Install the Yaplet Live Chat plugin
In your WordPress admin dashboard, go to Plugins → Add New Plugin. Search for Yaplet Live Chat. Click Install Now on the plugin by Yaplet, then click Activate.
2. Configure the plugin with your Widget ID
After activation, go to Settings → Yaplet in your WordPress admin. Paste your Widget ID into the field provided.
To find your Widget ID, log in to your Yaplet dashboard, click Widgets in the sidebar, click your widget, then click the Embed button. The Widget ID is shown at the top of the widget page.
Click Save Changes.
3. Verify the widget appears
Open your WordPress site in a new browser tab. You should see the Yaplet launcher button in the bottom-right corner of the page. Click it to confirm everything loads correctly.
For a step-by-step verification checklist, see Verify your installation.
Alternative: paste the snippet manually
If you prefer not to install a plugin, you can add the Yaplet snippet directly using the WordPress Theme File Editor or a code snippets plugin:
- Go to Appearance → Theme File Editor.
- Open footer.php (or your theme's footer template).
- Paste the JavaScript snippet just before the closing
</body>tag. - Click Update File.
Changes made in the Theme File Editor are lost when you update or switch your WordPress theme. The plugin approach is recommended — it persists across theme changes.
On WordPress block themes (the default since WordPress 6.0), the Theme File Editor isn't exposed under Appearance. If you can't find it there, use the Yaplet Live Chat plugin above or a code-snippets plugin like WPCode instead.
Troubleshooting
- Widget doesn't appear after activation — Clear your WordPress cache (and any CDN cache) and reload. Most WordPress caching plugins have a "Clear all caches" button in the admin toolbar.
- Wrong Widget ID — Double-check the Widget ID in Settings → Yaplet matches the one in your Yaplet dashboard.
- Script blocked by a security plugin — Plugins like Wordfence or NinjaFirewall may block inline scripts. Temporarily disable them to test, then add Yaplet domains to their allowlist:
yaplet.comandembed.yaplet.com.