Works with any CMS
One snippet, not a plugin dependency
Because the widget is a single script tag, the same setup works on WordPress, a static site, or a custom app. The server and the data stay yours, and there is no chat plugin to keep updated or to trust with your conversations.
Adding DChat to WordPress
There is no DChat plugin to install, and you do not need one: WordPress just needs to output one script tag before the closing body tag.
-
1. Get your snippet
Open Widget Builder in the DChat dashboard and copy the generated embed code. It already points at your own server.
-
2. Paste it into WordPress
The lowest-risk route is a header-and-footer code plugin: paste the snippet into the footer or body section and save. It survives theme updates and needs no file editing.
If you prefer editing files, add it to footer.php in a child theme, just before wp_footer(). Editing the parent theme directly means losing the change on the next update.
-
3. Route by page if you want to
Add data-department so product and checkout pages reach sales while support articles reach support. Add data-track-visitors="false" on checkout or account pages you would rather keep out of visitor monitoring.
-
4. Verify on the front end
Load your site logged out (or in a private window - caching plugins often bypass cache for logged-in admins) and confirm the launcher appears. Then run one real conversation from the widget to an agent.
Questions we get asked
Do I need a WordPress plugin for DChat?
No. DChat is a script tag, so any method of adding code before the closing body tag works - a header-and-footer snippet plugin, your child theme's footer.php, or your theme's built-in custom-code box. No DChat plugin is required or published.
Where do I paste the code in WordPress?
The simplest route is a header/footer code plugin: paste the snippet into the body or footer section. Alternatively add it to footer.php in a child theme, just before wp_footer() or the closing body tag. Use a child theme so a theme update does not overwrite it.
Will a caching plugin break it?
No. The snippet is static markup and the widget loads asynchronously, so page caches and CDNs serve it fine. If you use a plugin that combines or defers scripts, exclude zchat.iife.js from combination to be safe.
Will it clash with my theme's CSS?
No. The widget renders inside a Shadow DOM, so your theme's styles cannot leak in and the widget's styles cannot leak out - a common problem with chat widgets on heavily-styled themes.
Does WooCommerce work with this?
Yes, and the department attribute is useful there: put a support department on your account pages and a sales department on product and checkout pages, so conversations arrive in the right queue.