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
Open your website's HTML source code.
Locate the closing
</head>
tag.Paste the copied script tag just before the
</head>
tag.
For WordPress Users
Log in to your WordPress admin dashboard.
Navigate to "Appearance."
Select "Theme Editor" (you may need to activate your theme's editor).
On the right, find and click on "Theme Header" or "Header.php."
Locate the closing
</head>
tag.Paste the copied script tag just before the
</head>
tag.Save your changes.
For Webflow Users
Open your Webflow project.
Go to the "Project Settings."
Select the "Custom Code" section.
In the "Head Code" field, paste the script tag.
Save your changes.
For Other Website Builders
Access your website builder's settings.
Look for options related to adding custom HTML or scripts to your website.
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.