Title: Comment form formatting issue
Last modified: August 20, 2016

---

# Comment form formatting issue

 *  [yolise](https://wordpress.org/support/users/yolise/)
 * (@yolise)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/comment-form-formatting-issue/)
 * I have added an array as per the codex reference: [http://codex.wordpress.org/Function_Reference/comment_form](http://codex.wordpress.org/Function_Reference/comment_form)
 * however, I’m having trouble styling the Required Fields bit. For some reason 
   the asterisk keeps appearing after the form fields rather than next to the labels
   on the left. So, even though I’ve removed the span completely, they appear like:
 * Name |_________| *
    Email |_________| *
 * How do I move them?
 * This is my code:
 *     ```
       $comments_args = array(
               // change the title of send button
               'title_reply'=>'Add your comment',
               // remove "Text or HTML to be displayed after the set of comment fields"
               'comment_notes_after' => '',
               // redefine your own textarea (the comment body)
               'comment_field' => '<p class="comment-comment"><label for="comment">' . _x( '*Message', 'noun' ) . '</label><textarea id="comment" name="comment" aria-required="true"></textarea></p>',
       	// redefine author field
       	'author' => '<p class="comment-author">' . '<label for="author">' . __( '*Name' ) . '</label> ' . ( $req ? '' : '' ) . '<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' /></p>',
       	// redefine email field
       	'email'  => '<p class="comment-email"><label for="email">' . __( '*Email' ) . '</label> ' . ( $req ? '' : '' ) . '<input id="email" name="email" type="text" value="' . esc_attr(  $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . ' /></p>',
       );
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [yolise](https://wordpress.org/support/users/yolise/)
 * (@yolise)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/comment-form-formatting-issue/#post-2556313)
 * OK – I think that author and email are probably in the $fields array or something,
   but I can’t figure out where or how to call that. Can anyone help? That’s where
   the codex just sort of fades away with regard to explanation…
 *  Thread Starter [yolise](https://wordpress.org/support/users/yolise/)
 * (@yolise)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/comment-form-formatting-issue/#post-2556353)
 * I’m still struggling with this. Could someone explain how I call the fields array
   in my function file?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Comment form formatting issue’ is closed to new replies.

 * 2 replies
 * 1 participant
 * Last reply from: [yolise](https://wordpress.org/support/users/yolise/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/comment-form-formatting-issue/#post-2556353)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
