Did you notice that there was a slight change in the comment form fields in WordPress 4.4? The comment textarea is moved to the top whereas the Name, Email, and Website field is moved to the bottom. One of our readers asked if there was a way move back the comment text field to the bottom. Yes, there is because we did it on our site. In this article, we will show you how to move comment text field to the bottom in WordPress 4.4 and later versions.
您是否注意到WordPress 4.4的注释表单字段中有微小变化? 注释文本区域移至顶部,而“名称”,“电子邮件和网站”字段移至底部。 我们的一位读者问是否有办法将注释文本字段移回底部。 是的,这是因为我们是在我们的网站上完成的。 在本文中,我们将向您展示如何在WordPress 4.4和更高版本中将注释文本字段移到底部。

为什么更改了注释表单文本布局? (Why Comment Form Text Layout Was Changed?)
The decision to move the comment form text field to the bottom was made to fix a bug in WordPress 评论表单布局.
做出将注释表单文本字段移到底部的决定是为了修复WordPress 评论表单布局的错误。
以前,当用户单击回复按钮时,他们会被带到评论文本区域。如果用户在桌面上,那么他们可以清楚地看到他们需要首先填写姓名和电子邮件字段。
以前,当用户单击“回复”按钮时,他们会被带到评论文本区域。如果用户在桌面上,那么他们可以清楚地看到他们需要首先填写姓名和电子邮件字段。
但在移动设备上,用户甚至可能看不到评论名称和电子邮件字段。他们可能会撰写并提交评论,但返回时会出现错误,因为他们忘记输入姓名和电子邮件字段。
但在移动设备上,用户甚至可能看不到评论名称和电子邮件字段。他们可能会撰写并提交评论,但会收到错误消息,并且忘记输入姓名和电子邮件字段。
从可用性和可访问性的角度来看,这很糟糕,WordPress 4.4 解决了这个问题。
从可用性和可访问性的角度来看,这很糟糕,WordPress 4.4 修复了这个问题。
这就是默认评论表单现在的样子。
这就是默认评论表单现在的样子。

虽然此更改提高了可用性,但一些网站所有者认为他们的用户已经习惯了旧布局并希望切换回来。以下是您可以如何做到这一点。
尽管此更改提高了可用性,但一些网站所有者认为他们的用户已经习惯了旧的布局并希望切换回来。这是你可以做的。
将注释文本字段移到底部 (Moving the Comment Text Field to Bottom)
Simply add this code snippet in your theme’s 函数.php 文件 or in a 特定于站点的插件.
只需在主题的函数.php 文件或具体的于在网站的插件中添加此代码段即可。
function wpb_move_comment_field_to_bottom( $fields ) {
$comment_field = $fields['comment'];
unset( $fields['comment'] );
$fields['comment'] = $comment_field;
return $fields;
}
add_filter( 'comment_form_fields', 'wpb_move_comment_field_to_bottom' );
就这样,您现在可以以注销用户的身份访问您网站上的帖子并查看操作中的更改。
就是这样,您现在可以以注销用户的身份访问网站上的帖子并查看操作中的更改。

We hope this article helped you move comment text field to the bottom in WordPress 4.4. You may also want to see our guide on 如何使用 De:comments 改进 WordPress 评论.
我们希望本文能帮助您将注释文本字段移至WordPress 4.4的底部。 您可能还想查看我们的指南, 了解如何使用 De:comments 改进 WordPress 评论 。
If you liked this article, then please subscribe to our YouTube 频道 for WordPress video tutorials. You can also find us on 推特 and Facebook.
如果您喜欢这篇文章,请订阅我们的YouTube 频道 WordPress视频教程。 您也可以在推特和Facebook上找到我们。
翻译自: https://www.wpbeginner.com/wp-tutorials/how-to-move-comment-text-field-to-bottom-in-wordpress-4-4/