While Drupal comes with its own comment system, many users prefer to use Disqus as a centralized comment platform.
Adding Disqus to Drupal 8 is a simple process. I'm going to show you how to install the module, create a Disqus account, and hide Drupal's default comments.
Step #1. Install the Disqus module
- Download and install the Disqus module.
- Go to Extend from the main menu and scroll down till you find the OTHER section.
- Enable the Disqus module:
Step #2. Create a Disqus module
- Go to Disqus.com and register your account.
- Choose a shortname. This is what will connect your account to your site.
- Enter the URL of your site and choose a category that best fits your site's topic.
- You'll also be asked some basic questions how many sites do you manage how many visitors you get and finally what platform you use for your site.
Step #3. Configure your site
- Go back to your Drupal site.
- Go to Configuration > Disqus and enter the shortname you registered with Disqus.
- Go to Structure > Content types. You will have to add Disqus to each content type. Select manage fields for the content type you want to add it to.
- Select Add field.
- Choose "Disqus comment" and give it a label suitable for this field.
- Select Save and continue.
After you have saved the Disqus field, we need to change the "Manage Display" option:
We start on the Default view. Make sure that the normal comments field is turned off .
- Drag the comments field into the Disabled region.
- Make sure that your new Disqus field is listed.
If you wanted to, you could completely remove the old comments system by selecting manage fields and deleting the old comments field. Personally, I often remove this feature as I won't be using it. I don't require two methods of posting comments.
Step #4. Configure your existing content
If you already have existing entries, you need to activate Disqus. All you need to do is go to edit and then select Save and publish. Then your new commenting method will be activated.
Step #5. Permissions
Finally, you now need to decide who you want to be able to access the Disqus commenting.
If you want people to be able to post as guests you will need to remember to go to People > Permissions. Select the permissions for non registered users and authenticated to allow them to post replies to your posts. Both are disabled by default.