WordPress Integration

Add CrispChat to your WordPress site in minutes. Choose from multiple installation methods.

Method 1: Theme Editor (Recommended)

The simplest way to add CrispChat to WordPress:

1

Go to Theme Editor

Navigate to Appearance → Theme File Editor in your WordPress admin.

2

Open footer.php

In the right sidebar, click on Theme Footer (footer.php).

3

Add the Script

Paste the following code just before </body>:

<script src="https://www.crispchat.app/chatbot-embed.js?id=YOUR_SITE_ID"></script>
4

Save Changes

Click Update File to save your changes.

Method 2: Header/Footer Plugin

If you prefer not to edit theme files directly, use a plugin to insert the script:

1

Install a Header/Footer Plugin

Install and activate a plugin like "Insert Headers and Footers" or "WPCode" from the WordPress plugin repository.

2

Add the Script to Footer

Go to the plugin settings and paste the CrispChat script in the "Footer" section.

3

Save

Save the plugin settings. The widget will now appear on all pages.

Plugin Advantages

Using a plugin keeps your script safe when you update or change themes. It's the best choice if you frequently update your WordPress theme.

Method 3: functions.php

For developers who prefer using WordPress hooks:

// Add to your theme's functions.php
function add_crispchat_widget() {
    ?>
    <script src="https://www.crispchat.app/chatbot-embed.js?id=YOUR_SITE_ID"></script>
    <?php
}
add_action('wp_footer', 'add_crispchat_widget');

Important

If you edit functions.php directly, use a child theme to prevent losing changes when your theme updates.

Troubleshooting

Widget not appearing?

  • • Clear your WordPress cache and any caching plugins
  • • Check if your Site ID is correct
  • • Ensure the script is placed before the closing body tag
  • • Check browser console for any JavaScript errors

Conflicts with other plugins?

  • • Try disabling other chat or popup plugins temporarily
  • • Check if any JavaScript optimization plugins are affecting the script
  • • Contact support if the issue persists