WordPress Installation
Add Simple Commenter to your WordPress website. Choose the method that works best for your setup.
Method 1: Plugin (Recommended)
Using a plugin keeps your code safe when updating themes.
Using WPCode (Free)
- Install and activate the WPCode plugin (or "Insert Headers and Footers")
- Go to Code Snippets > Header & Footer
- Paste this in the Footer section:
<script
src="https://simplecommenter.com/js/comments.min.js"
data-domain="your-domain.com"
defer
></script>
- Click Save Changes
Replace your-domain.com with your actual domain from the Simple Commenter dashboard.
Using Insert Headers and Footers
- Install Insert Headers and Footers by WPBeginner
- Go to Settings > Insert Headers and Footers
- Paste the script in the Scripts in Footer box
- Save
Method 2: Theme Editor
Changes in the theme editor are lost when you update your theme. Consider using a plugin or child theme instead.
- Go to Appearance > Theme File Editor
- Select your active theme
- Open
footer.php(or your theme's footer template) - Add this code before
</body>:
<script
src="https://simplecommenter.com/js/comments.min.js"
data-domain="<?php echo esc_attr($_SERVER['HTTP_HOST']); ?>"
defer
></script>
- Click Update File
Method 3: Child Theme
The safest method for theme modifications.
Add this to your child theme's functions.php:
function add_simplecommenter_widget() {
?>
<script
src="https://simplecommenter.com/js/comments.min.js"
data-domain="<?php echo esc_attr($_SERVER['HTTP_HOST']); ?>"
defer
></script>
<?php
}
add_action('wp_footer', 'add_simplecommenter_widget');
Method 4: Elementor
If using Elementor Pro:
- Go to Elementor > Custom Code
- Click Add New
- Set location to Body - End
- Paste the script code
- Set display conditions and publish
Verifying Installation
- Clear any caching plugins (WP Super Cache, W3 Total Cache, etc.)
- Visit your site in an incognito/private window
- Look for the feedback widget button
- Check browser console (F12) for any errors
Troubleshooting
Widget not appearing
- Clear your WordPress cache
- Clear any CDN cache (Cloudflare, etc.)
- Check that the script wasn't removed by a security plugin
- Verify the domain matches your dashboard exactly
Conflicts with other plugins
- Try disabling other JavaScript optimization plugins temporarily
- Check if a security plugin is blocking external scripts
- Ensure no duplicate scripts are loaded
WooCommerce sites
The widget works on WooCommerce pages. If you only want it on certain pages:
function add_simplecommenter_widget() {
// Only load on non-cart/checkout pages
if (is_cart() || is_checkout()) return;
?>
<script
src="https://simplecommenter.com/js/comments.min.js"
data-domain="<?php echo esc_attr($_SERVER['HTTP_HOST']); ?>"
defer
></script>
<?php
}
add_action('wp_footer', 'add_simplecommenter_widget');
Need help? Contact support.