How to delete “Comment” default text from inside the Comment field?
-
I’ve modified my contact form using comments.php to remove the “Name” and “Email” field labels from inside those fields but am struggling to do the same thing for the “Comment” field. I can’t simply delete the necessary text from the PHP file, as I was able to do with the other two fields.
I’ve tried following the instructions here:
https://codex.www.ads-software.com/Function_Reference/comment_form#Default_.24args_array
Here is the corresponding section in my comments.php file:
comment_form( array( ‘fields’ => $fields, ‘label_submit’ => esc_attr__( ‘Submit’, ‘Divi’ ), ‘title_reply’ => ‘<span>’ . esc_attr__( ‘Leave a comment’, ‘Divi’ ) . ‘</span>’, ‘title_reply_to’ => esc_attr__( ‘Leave a Reply to %s’, ‘Divi’ ), ‘class_submit’ => ‘submit et_pb_button’, comment_notes_before
=>'<p class=”comment-notes”>’ . __( ” ) . ‘</p>’ ) ); ?>Can someone please tell me what I need to do to this code in order to prevent my contact form’s “Comment” field from automatically populating with the word “Comment”? Thanks.
- The topic ‘How to delete “Comment” default text from inside the Comment field?’ is closed to new replies.