Add Comments to Your Drupal Site

Comments, Reactions, and Ratings Without the Spam Work

Keep your Drupal site lean and let Hyvor Talk handle the comments. Use the community module, or add a few lines to your theme, and every node gets comments with replies, notifications, and moderation.

Installation guide About 10 minutes

Steps to Add Comments to Drupal

First, sign up at the Hyvor Talk Console, add your website with your Drupal site's domain, and copy the website ID from Settings → Website. Then pick one of the options below.

Option 1: The Hyvor Talk module

The Hyvor Talk module is a third-party module, built by a Hyvor Talk customer. HYVOR doesn't maintain or support it. Its latest release is a beta for Drupal 8, 9, and 10, and drupal.org lists it as unsupported, so test it on a staging site first.

  1. Install the module with Composer and enable it:

    composer require 'drupal/hyvortalk:^1.0@beta'
    drush en hyvortalk
  2. Go to /admin/config/hyvortalk/config. Enter your website ID and choose a loading mode. Default loads the comments with the page, which is best if you want search engines to see them.

  3. In Structure → Block layout, place the Hyvor Talk block in your content region, and limit it to the content types that should have comments. The module uses the node ID as the page ID.

  4. In People → Permissions, choose which roles can see the Hyvor Talk comments.

Option 2: Add the embed to your theme

This works on any Drupal version, including Drupal 11, and doesn't need a contributed module. Use a custom theme or a sub-theme, so updates don't overwrite your change.

  1. Copy the node template for your content type into your theme's templates folder. For articles, that's node--article.html.twig, which you can start from your base theme's node.html.twig.

  2. Add this at the end of the template. It only shows the comments on the full node page, and uses the node ID as the page ID.

    {# Keep the original template content above this line #}
    
    {% if view_mode == 'full' %}
      <script async src="https://talk.hyvor.com/embed/embed.js" type="module"></script>
      <hyvor-talk-comments
          website-id="YOUR_WEBSITE_ID"
          page-id="{{ node.id }}"
      ></hyvor-talk-comments>
    {% endif %}
  3. Clear the cache with drush cr (or at Configuration → Performance) and open an article.

That's it. Your Drupal content now has comments. From the Console, you can change the look and set up moderation.

Frequently asked questions

No. The Hyvor Talk module was built and shared by a Hyvor Talk user, and HYVOR doesn't maintain it. On drupal.org it's a beta release for Drupal 8, 9, and 10, and it's marked as unsupported. Check that it fits your site before you rely on it.

If you're on Drupal 8 to 10 and want settings in the admin UI, try the module. For Drupal 11, or if you don't want a third-party module, add the embed to your theme template (Option 2). It only takes a few lines and works on any Drupal version.

Core comments live in your database, and you handle spam, notifications, and logins yourself. Hyvor Talk moves all of that off your server and adds replies by email, reactions, ratings, and moderation tools. You can turn off the core comment field on content types that use Hyvor Talk.

Node IDs never change, even when you edit a URL alias. That keeps each node's thread in place. The module does this for you, and the Twig example uses node.id too.

Yes. The module supports Hyvor Talk's stateless single sign-on: add your SSO private key in its settings. With the template approach, see the stateless SSO docs. SSO is part of the Business plan.

Yes. The comment section speaks 30+ languages. The module sets the language from your Drupal site language and shows the same thread on every translation of a node.

Yes, for 14 days, and no credit card is needed. Plans are on the pricing page.

Start your 14-day free trial now!

14-day free trial
No credit card required
Cancel anytime