I am trying to customise the comment form so I can clearly edit the labels and style them.
<?php comment_form( $args = array(
'id_form' => 'commentform', // that's the wordpress default value! delete it or edit it ;)
'id_submit' => 'commentsubmit',
'title_reply' => __( 'Leave a Reply' ), // that's the wordpress default value! delete it or edit it ;)
'title_reply_to' => __( 'Leave a Reply to %s' ), // that's the wordpress default value! delete it or edit it ;)
'cancel_reply_link' => __( 'Cancel Reply' ), // that's the wordpress default value! delete it or edit it ;)
'label_submit' => __( 'Post Comment' ), // that's the wordpress default value! delete it or edit it ;)
'comment_field' => '<p><textarea placeholder="Start typing..." id="comment" class="form-control" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>',
'comment_notes_after' => '<p>' .
__( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:' ) .
'</p><div class="">' . allowed_tags() . '</div>'
));
?>
How can I change it so I can target the appropriate field such as Name
, Email
and Website
? I can't find a good tutorial to do so. Any help or direction will be appreciated.