Platform Installation Guides

Platform-specific instructions for adding SimpleCommenter to your website.

WordPress

Option 1: Theme Editor

  1. Go to Appearance > Theme Editor
  2. Open footer.php or your theme's footer template
  3. Add the script before </body>:
<script
  src="https://simplecommenter.com/js/comments.min.js"
  data-domain="<?php echo $_SERVER['HTTP_HOST']; ?>"
  defer
></script>
  1. Install and activate Insert Headers and Footers plugin
  2. Go to Settings > Insert Headers and Footers
  3. Paste the script in the Footer section
  4. Save changes

Using a plugin prevents losing the script when updating your theme.

Option 3: Child Theme

Add 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');

Webflow

  1. Go to Project Settings > Custom Code
  2. In the Footer Code section, paste:
<script
  src="https://simplecommenter.com/js/comments.min.js"
  data-domain="your-domain.com"
  defer
></script>
  1. Click Save Changes
  2. Publish your site

Replace your-domain.com with your actual Webflow domain or custom domain.


Squarespace

  1. Go to Settings > Advanced > Code Injection
  2. In the Footer field, paste:
<script
  src="https://simplecommenter.com/js/comments.min.js"
  data-domain="your-domain.com"
  defer
></script>
  1. Click Save

Shopify

  1. Go to Online Store > Themes
  2. Click Actions > Edit Code
  3. Open theme.liquid
  4. Add before </body>:
<script
  src="https://simplecommenter.com/js/comments.min.js"
  data-domain="{{ shop.domain }}"
  defer
></script>
  1. Click Save

Wix

  1. Go to Settings > Custom Code
  2. Click + Add Custom Code
  3. Paste the script
  4. Set placement to Body - end
  5. Apply to All pages
  6. Click Apply
Wix code injection requires a Premium plan.

Next.js

Add to your root layout or _app.js:

import Script from "next/script";

export default function RootLayout({ children }) {
  return (
    <html>
      <body>
        {children}
        <Script
          src="https://simplecommenter.com/js/comments.min.js"
          data-domain="your-domain.com"
          strategy="lazyOnload"
        />
      </body>
    </html>
  );
}

React (Create React App, Vite)

Add to your public/index.html:

<script
  src="https://simplecommenter.com/js/comments.min.js"
  data-domain="your-domain.com"
  defer
></script>

Or dynamically in a component:

import { useEffect } from "react";

function FeedbackWidget() {
  useEffect(() => {
    const script = document.createElement("script");
    script.src = "https://simplecommenter.com/js/comments.min.js";
    script.dataset.domain = "your-domain.com";
    script.defer = true;
    document.body.appendChild(script);

    return () => document.body.removeChild(script);
  }, []);

  return null;
}

Vue.js / Nuxt

Vue 3

In your App.vue or main layout:

<script setup>
import { onMounted } from "vue";

onMounted(() => {
  const script = document.createElement("script");
  script.src = "https://simplecommenter.com/js/comments.min.js";
  script.dataset.domain = "your-domain.com";
  script.defer = true;
  document.body.appendChild(script);
});
</script>

Nuxt 3

In nuxt.config.ts:

export default defineNuxtConfig({
  app: {
    head: {
      script: [
        {
          src: "https://simplecommenter.com/js/comments.min.js",
          "data-domain": "your-domain.com",
          defer: true,
        },
      ],
    },
  },
});

Static HTML

Simply add before </body>:

<!DOCTYPE html>
<html>
  <head>
    <title>My Website</title>
  </head>
  <body>
    <!-- Your content -->

    <script
      src="https://simplecommenter.com/js/comments.min.js"
      data-domain="your-domain.com"
      defer
    ></script>
  </body>
</html>

Troubleshooting

Widget Not Appearing?

  1. Check domain: Ensure data-domain matches your dashboard exactly
  2. Check console: Look for errors in browser developer tools
  3. Script placement: Should be before </body>, not in <head>
  4. HTTPS: Both your site and the script use HTTPS

Need Help?

Was this page helpful?