Replire

WordPress

How to add your AI chat widget to a WordPress site.

Integration Script

Paste this snippet just before the closing </body> tag. Replace the URL and key with your actual values.

<script src="https://your-domain.com/widget.js" data-key="YOUR_WIDGET_KEY" async></script>

Step-by-step instructions

For most users, using a plugin is the safest way to manage scripts.

  1. 1Install the Insert Headers and Footers (WPCode) plugin from the WordPress plugin directory.
  2. 2Navigate to Code Snippets > Header & Footer in your WordPress dashboard.
  3. 3Paste the script into the Footer section.
  4. 4Click Save Changes.

Developer tip: You can also paste the script directly into your theme's footer.php file, immediately before the </body> tag.