Installing Commenti on Your Website

Installation Steps

Step 1: Customize Your Commenti Appearance

Before copying any code, customize your Commenti appearance:

Commenti customize preview
  1. Go to your Commenti dashboard
  2. Navigate to the "Install & Customize" section
  3. Adjust colors, fonts, and other styling options to match your website
  4. Preview your changes in real-time
  5. Save your customizations

Step 2: Add the Script

Copy the following script and paste it into the <head> section of your HTML file. This loads the Commenti library.

<script async src="https://package.commenti.co/commenti.umd.js"></script>

Step 3: Add the Component

Copy the following component and paste it where you want the comments to appear in the <body> of your HTML file. This snippet includes your customized styles.

<commenti-section
  styles=' ... if you set style customization this will appear'
></commenti-section>

Additional Notes

  • Ensure the script is loaded in the <head> before using the component in the <body>.
  • The styles in the component tag reflect your customizations. If you update your styles in the dashboard, you'll need to update this code as well.
  • For dynamic websites or single-page applications, ensure the Commenti script is loaded before rendering the component.

Need Further Assistance?

If you have any questions or need additional support, our team is here to help: