WordPress Installation

Add Simple Commenter to your WordPress website. Choose the method that works best for your setup.

Using a plugin keeps your code safe when updating themes.

Using WPCode (Free)

  1. Install and activate the WPCode plugin (or "Insert Headers and Footers")
  2. Go to Code Snippets > Header & Footer
  3. Paste this in the Footer section:
<script
  src="https://simplecommenter.com/js/comments.min.js"
  data-domain="your-domain.com"
  defer
></script>
  1. Click Save Changes

Replace your-domain.com with your actual domain from the Simple Commenter dashboard.

Using Insert Headers and Footers

  1. Install Insert Headers and Footers by WPBeginner
  2. Go to Settings > Insert Headers and Footers
  3. Paste the script in the Scripts in Footer box
  4. 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.

  1. Go to Appearance > Theme File Editor
  2. Select your active theme
  3. Open footer.php (or your theme's footer template)
  4. 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>
  1. 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:

  1. Go to Elementor > Custom Code
  2. Click Add New
  3. Set location to Body - End
  4. Paste the script code
  5. Set display conditions and publish

Verifying Installation

  1. Clear any caching plugins (WP Super Cache, W3 Total Cache, etc.)
  2. Visit your site in an incognito/private window
  3. Look for the feedback widget button
  4. 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.

Was this page helpful?