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:
Go to Theme Editor
Navigate to Appearance → Theme File Editor in your WordPress admin.
Open footer.php
In the right sidebar, click on Theme Footer (footer.php).
Add the Script
Paste the following code just before </body>:
<script src="https://www.crispchat.app/chatbot-embed.js?id=YOUR_SITE_ID"></script>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:
Install a Header/Footer Plugin
Install and activate a plugin like "Insert Headers and Footers" or "WPCode" from the WordPress plugin repository.
Add the Script to Footer
Go to the plugin settings and paste the CrispChat script in the "Footer" section.
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