5

This might sound stupid, but I can't find a way to do it. I need to add a description to the node title, just like I add a description to other fields. How can I do it?

8

In a hook_form_alter() or hook_form_FORM_ID_alter(), add a description attribute to the node form element array:

 //Add a title field description
  $form['title']['#description'] = t('Enter your awesome title field details.');
| improve this answer | |
1

Node title help text module can be used to add help text to node title. Configuration is available to add description per content type

https://www.drupal.org/project/node_title_help_text

| improve this answer | |
0

In Drupal 8 is pretty similar inside the same hook_form_alter():

$form['title']['widget'][0]['value']['#description'] = t('Enter your awesome title field details.');
| improve this answer | |

Not the answer you're looking for? Browse other questions tagged or ask your own question.