Even though you have learned how to add a comment field to a content type, you are not obligated to keep the comment on each individual node. YOu may want to create pages that will not have the ability to have comments, or shut comments down on nodes whose comments have gotten a bit out of control. The steps below will guide you on how to disable comments on a specific node in Drupal 8.

How to disable comments for a specific node

  1. Log into your admin dashboard.
  2. Using the top menu bar, select the Menu option.
  3. Next, choose the Content option from the second menu.
  4. This page will show a list of all nodes that have been created. Find the specific node you want to disable the comments for and click on the Edit link from the dropdown on the right hand side of the row. For example, we will choose the Sample Article node, which is an article content type and has comments enabled by default.
  5. Now you will see the settings page for the node. Over to the right hand side of the page there are a few sections you can expand to change the settings. Click on the Comment Settings section and then click on the Closed radio button. This will disable the comments for that node.
    Note: This will not remove any existing comments on the node, these will need to be removed separately.
  6. Once you have closed the comments for the node, click on the Save and keep published button at the bottom of the page. This will activate your new settings fot the node. Visiting that particular node on your site, you will notice that the comment form is no longer visible. Below is a before and after comparison so you can see the difference in the change you made.
    DefaultComent field added
Continued Education in Course 107: Working with Comments in Drupal 8
You are viewing Section 7: Disabling comments for specific nodes in Drupal 8
Section 6: Customizing your Comments field in Drupal 8
Section 8: Disabling comments for Article content type in Drupal 8
Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

0 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!