删除wordpress评论中的框


Remove boxes from wordpress comments

我希望有人能帮助我或为我指明正确的方向。我现在正在拔头发。

在wordpress评论表上。我有这些框:

屏幕截图

我查看了wordpress功能页面:https://codex.wordpress.org/Function_Reference/comment_form它提到了这个'comment_notes_before'=>'-即使我将值设为空,它仍然会添加那些该死的框!!!!

有人能告诉我如何把它们取下来吗?

p.s我使用的是标准的comment_form($comments_args)实现不是自定义表单。

感谢

编辑:完整代码

<?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 ),
);
?>

如果没有WordPress挂钩来控制这一点,那么使用CSS选择器来设计评论区的样式绝对是最好的方法。

我快速查看了文档,我看不出你在哪里删除了按钮,如果它的设置与用js添加的文本编辑器相同,但你可以使用css并将它们设置为显示:没有,这将是一个快速的解决方案David 2015年12月16日1:18

大卫有一个正确的想法,看起来这就成功了。在扫描评论之前,我在上面-CSS!!!

我正在回答这个问题,所以它不再显示为未回答