Skip to main content
All CollectionsInstallation
Adding the Code Snippet
Adding the Code Snippet
Hakan Baybas avatar
Written by Hakan Baybas
Updated over 7 months ago

The Commented Code Snippet is an essential element for enabling seamless commenting and collaboration on your website. By adding this snippet to your site, you allow visitors to leave comments and suggestions, enhancing communication between your team, and your audience. Follow these simple steps to get started:

Adding the Code Snippet: A Step-by-Step Guide

Follow these steps to add the code snippet:

Step 1: Copy the Script Tag

Copy the following script tag:

<script defer src="https://cdn.commented.io/latest.js"></script>

Step 2: Paste the Script

Now, let's guide you on where to paste this script tag, which may vary depending on the content management system (CMS) you use:

For Custom Websites

  1. Open your website's HTML source code.

  2. Locate the closing </head> tag.

  3. Paste the copied script tag just before the </head> tag.

For WordPress Users

  1. Log in to your WordPress admin dashboard.

  2. Navigate to "Appearance."

  3. Select "Theme Editor" (you may need to activate your theme's editor).

  4. On the right, find and click on "Theme Header" or "Header.php."

  5. Locate the closing </head> tag.

  6. Paste the copied script tag just before the </head> tag.

  7. Save your changes.

For Webflow Users

  1. Open your Webflow project.

  2. Go to the "Project Settings."

  3. Select the "Custom Code" section.

  4. In the "Head Code" field, paste the script tag.

  5. Save your changes.

For Other Website Builders

  1. Access your website builder's settings.

  2. Look for options related to adding custom HTML or scripts to your website.

  3. Paste the copied script tag where you can add custom code.

Now, you're all set to use Commented for your web project, regardless of your website setup!


Caveats

  • Only add the script once to each page where you want to use Commented. There's no need to duplicate it.

  • If your website has a master page, add the script to that master page for it to apply globally.

Did this answer your question?