Install guides / WordPress
Install Embent on WordPress
No theme file to hand-edit. Install a free code-snippets plugin, paste the snippet once, and it loads on every page of your site.
Before you start
- Self-hosted WordPress.org: no plan or hosting restriction — any site that can install plugins (or edit theme files) can do this.
- WordPress.com: requires the Personal plan or higher. The free WordPress.com plan cannot install plugins or add custom JavaScript.
Steps
Copy your embed snippet
In your Embent dashboard, open your bot's Overview and copy the embed snippet. It looks like this:
<script src="https://api.embent.com/widget.js" data-bot="YOUR_BOT_ID" async></script>Install a code-snippets plugin
From your WordPress dashboard, go to Plugins → Add New, search for "WPCode – Insert Headers and Footers", and install and activate it. It works the same way on self-hosted WordPress.org and on WordPress.com sites with a plan that allows plugins.
Paste the snippet into the footer
Open the plugin's Code Snippets → Header & Footer screen and paste the snippet into the Footer box, which the plugin loads on every page just before the closing body tag. Save.
Check it worked
Reload your site in a new browser tab: the chat bubble appears in the corner. Ask it a question about your own pages and it should answer with a citation.
If it doesn't work
Tried it and the widget isn't showing? These fix nearly every case.
Common questions
The chat bubble in the corner is Embent itself, running on this page — ask it anything about us.