I hope someone can help me with this or point me in the right direction. I’m currently pulling my hair out.
On the wordpress comments form. I have these boxes:
I have looked at the wordpress functions page: https://codex.wordpress.org/Function_Reference/comment_form which mentioned this ‘comment_notes_before’ => ” – Even if I made the value blank it still adds those bloody boxes!!!!
Can someone please tell me how to remove them?
p.s I am using the standard comment_form($comments_args); implementation not a custom form.
Thanks
EDIT: Full Code
<?php
$fields = array(
// author field
'author' => '',
//email field
'email' => '',
'comment_notes_before' => '',
'comment_notes_after' => ''
);
?>
<?php
$comments_args = array(
'id_form' => 'commentform',
'class_form' => 'comment-form',
'id_submit' => 'submit',
'class_submit' => 'submit',
'name_submit' => 'submit',
'title_reply' => __( 'Leave a Reply' ),
'title_reply_to' => __( 'Leave a Reply to %s' ),
'cancel_reply_link' => __( 'Cancel Reply' ),
'label_submit' => __( 'Post Comment' ),
'format' => 'xhtml',
'comment_field' => '<p class="comment-form-comment"><label for="comment">Comment</label><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true">' .
'</textarea></p>',
'must_log_in' => '<p class="must-log-in">' .
sprintf(
__( 'You must be <a href="%s">logged in</a> to post a comment.' ),
wp_login_url( apply_filters( 'the_permalink', get_permalink() ) )
) . '</p>',
'logged_in_as' => '<p class="logged-in-as">' .
sprintf(
__( 'Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>' ),
admin_url( 'profile.php' ),
$user_identity,
wp_logout_url( apply_filters( 'the_permalink', get_permalink( ) ) )
) . '</p>',
'fields' => apply_filters( 'comment_form_default_fields', $fields ),
);
?>
Using CSS selectors to style the comments area is absolutely the best way given there are no WordPress hooks to control this.
David has the right idea and it looks like that did the trick. Before scanning the comments I was on-top of it – CSS!!!
I’m answering this question so it no longer shows as unanswered.