Add Grimm to WordPress

Grimm is one line of code — here's how to add it to any WordPress site in a couple of minutes, with no theme editing required.

Before you start

You need a Grimm chatbot (create one on your dashboard), some indexed content in the Knowledge tab, and a GrinGhost budget so Grimm can answer.

1. Allow your domain

In the Domains tab, add the domain where Grimm will live (e.g. yoursite.com). It's required before you can embed — it stops anyone else from reusing your snippet on your budget.

2. Copy your snippet

Open the Integration tab and copy the script — it already contains your chatbot id:

<script src="https://grimmchat.com/widget.js" data-chatbot-id="YOUR_CHATBOT_ID"></script>

3. Paste it with WPCode (recommended)

WPCode is a free plugin that adds the script site-wide without touching your theme:

  1. In WordPress admin, go to Plugins → Add New, search WPCode, then Install and Activate.
  2. Go to Code Snippets → + Add Snippet → Add Your Custom Code (Blank Snippet).
  3. Set Code Type to HTML Snippet and paste your Grimm snippet.
  4. Under Insertion, choose Auto Insert, location Site Wide Footer (this places it before </body>).
  5. Toggle the snippet Active and Save.

Alternative: your theme or page builder

Many themes and builders (Elementor, Divi, or a block theme) have a custom code / footer scriptsfield in their settings — paste the same snippet there. Any "Insert Headers and Footers" plugin works too.

Alternative: functions.php (advanced)

If you're comfortable editing your (child) theme, add this to functions.php:

add_action('wp_footer', function () { ?>
<script src="https://grimmchat.com/widget.js" data-chatbot-id="YOUR_CHATBOT_ID"></script>
<?php });

4. Check it and choose where it shows

Open your site — Grimm appears as a small bubble in the corner. To show it only on some pages (or hide it from a few), use the Pages tab in your dashboard — no need for plugin conditions.

Troubleshooting

  • The bubble doesn't appear — confirm the snippet is in a site-wide footer and the chatbot id is correct.
  • "Domain not allowed" — add your site's domain in the Domains tab.
  • Just changed something and don't see it? Your browser may cache the widget — try a private window.
Tip:you don't need a dedicated GrimmChat plugin — WPCode (or any header/footer plugin) is all it takes. Everything else (name, color, pages, budget) is managed in your GrimmChat dashboard.

Other platforms: Shopify · Webflow · Wix · Framer · Squarespace · Hostinger · Bubble · Lovable · Google Tag Manager · general setup.