304: Removing the title label for a field in Drupal 8
After creating a field type, such as a comment, for a particular content type you will notice that the field's label will appear on the page, even if the field is disabled. To learn how to disable the label so that there is not an extraneous title hanging out on your screen, follow the instructions below.
How to remove a field title
- First, log into your admin dashboard..
- Next, click on the Menu option from the upper menu bar.
- Now you will need to click on the the Structure link from the secondary menu bar.
- This next page is the Structure page. Here you will want to locate and click on the Content Types item.
- Now you are presented with the Content types list. Find the dropdown to the right of the content type you are working with and click the Manage Display option.
- This brings you to the Manage Display tab for your selected content. In our example we are working with the Blog post content type. Here we see the different field types used in the Blog post, which are Body and Comments. Look to the Label dropdown for the Comments field type and set it to -Hidden-. This will configure the field to not display its label.
- Once you have set the label to hidden, click on the Save button in the lower left corner of the page to save it. Now your comments area should not display the label. Below is a before and after shot of the Comments label on a blog entry. Note how it displayed even when the comments were disabled. Now, it does not show.
We value your feedback!
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.
new! - Enter your name and email address above and we will post your feedback in the comments on this page!