---
title: "Creating a comment field for content types in Drupal 8"
description: "By default Articles, Pages, Blog pages, and other content types do not have a place for visitors to leave a comment. Beginning in Drupal 8, Comment became its own field type. This means it is much..."
url: https://www.inmotionhosting.com/support/edu/drupal/create-comment-field/
date: 2013-11-11
modified: 2023-03-13
author: "Scott Mitchell"
categories: ["Drupal"]
tags: ["Drupal v8"]
type: post
lang: en
---

# Creating a comment field for content types in Drupal 8

By default *Articles*, *Pages*, *Blog pages*, and other content types do not have a place for visitors to leave a comment. Beginning in Drupal 8, *Comment* became its own field type. This means it is much more versatile and can be added to even more places, such as each product on a site having its own comment section. Below is our guide on adding a comment field for the content type in Drupal 8.

## How to create a comment field for a content type

1. [Log into your admin interface](https://www.inmotionhosting.com/support/edu/drupal/how-to-log-into-the-drupal-admin-dashboard/).
2. [![](https://www.inmotionhosting.com/support/wp-content/uploads/2013/11/edu_Drupal-8__common-images_select-menu.png)](/support/wp-content/uploads/2013/11/edu_Drupal-8__common-images_select-menu.png) Select the **Menu** option from the top menu bar.
3. [![](https://www.inmotionhosting.com/support/wp-content/uploads/2013/11/edu_Drupal-8__common-images_select-content.png)](/support/wp-content/uploads/2013/11/edu_Drupal-8__common-images_select-content.png) From here click on the the **Structure** link, located on the menu bar underneath the first one.
4. [![](https://www.inmotionhosting.com/support/wp-content/uploads/2013/11/edu_Drupal-8_302_1-select-content-type.png)](/support/wp-content/uploads/2013/11/edu_Drupal-8_302_1-select-content-type.png) You are now on the *Structure* page. From here, find and click on the **Content types** link.
5. [![](https://www.inmotionhosting.com/support/wp-content/uploads/2013/11/edu_Drupal-8_302_2-click-content-type.png)](/support/wp-content/uploads/2013/11/edu_Drupal-8_302_2-click-content-type.png) Here on the *Content types* page you are presented with all the available types of content to create nodes with. Find the content type you want to add the comment to and click on the **Message fields** link from the dropdown. In our example, we will choose the *Blog page* content type.
6. [![](https://www.inmotionhosting.com/support/wp-content/uploads/2013/11/edu_Drupal-8_302_3-enter-field-data.png)](/support/wp-content/uploads/2013/11/edu_Drupal-8_302_3-enter-field-data.png) This page is where we will add the comment field. Give the comment field a name where you see **Add new field**. This should be descriptive, so we are naming it *Comments*. Note that the *Machine Name* is automatically created according to the label you gave the field. Next, select the **Comments** option from the *Field Type* dropdown.
7. [![](https://www.inmotionhosting.com/support/wp-content/uploads/2013/11/edu_Drupal-8_302_4-save-settings.png)](/support/wp-content/uploads/2013/11/edu_Drupal-8_302_4-save-settings.png) After the field data has been entered, click on the **Save** button in the lower left corner. This will save the new field data to your selected content type. You will be prompted to confirm this with an additional page, simply click **Save field settings** to finish.

Congratulations, now you know how to create a comment field in Drupal. In the next guide, we’ll cover [Customizing your Comments field in Drupal 8](https://www.inmotionhosting.com/support/edu/drupal/customize-comments/).
