How to put description on top of the input box, for a new field added to comment form? I have added a new field to my comment form and this is how my comment form look liks:



So you can see it does not look nice, I want to have the description on top of the input box, where I say: Which paragraph do you want to put comment on?(Enter 0 if you ant to put comment on the whole article). So How can I do it?

This is the function that I have used to add the new field to comment form:

  function Annotations_form_comment_form_alter(&amp;$form, &amp;$form_state, $form_id) {
$form['paragraph_id'] = array(
    '#type' =&gt; 'textfield',
    '#title' =&gt; t('Which paragraph you want to put comment on?(Enter 0 if you want to put comment on the whole article.)') . "&lt;br&gt;",
    '#required' =&gt; TRUE,
    '#size' =&gt; 10,
    '#maxlength' =&gt; 2,
    '#default_value' =&gt; !empty($form['#entity']-&gt;paragraph_id) ? $form['#entity']-&gt;paragraph_id : NULL, // set the default value to the current paragraph value
    '#weight' =&gt; $form['subject']['#weight'] + 1, // place after the subject field by setting the weight to +1 of subject weight
);

$form['#validate'][] = 'annotations_form_comment_form_validate';
$form['#submit'][] = 'annotations_form_comment_form_submit';


}
You need to add a description field to your array:

$form['paragraph_id'] = array(
    '#type' =&gt; 'textfield',
    '#title' =&gt; t('Your Title'),
    '#description' =&gt; t('The paragraph you would like to put a comment on (enter 0 if you want to put the comment on the entire article'),
    ...
);


This way the explanation will show up under the field.