Family Encyclopedia >> Electronics

How to move the comment text field to the bottom in WordPress 4.4

Did you notice there was a slight change to the comment form fields in WordPress 4.4? The comment text area moves to the top, while the Name, Email, and Website fields move to the bottom. One of our readers asked if there was a way to move the comment text field back to the end. Yes, there is because we did it on our site. In this article, we will show you how to move the comment text field to the end in WordPress 4.4 and later.

How to move the comment text field to the bottom in WordPress 4.4

Why was the layout of the comment form text changed?

The decision to move the comment form text field to the bottom was made to fix a bug in the layout of the WordPress comment form.

Previously, when users clicked the reply button, they were taken to the comment text area. If a user was on desktop, then you can clearly see that they need to fill in the name and email fields first.

But on mobile, users can't even see the comment name and email fields. They may write and submit a comment only to return with an error that they forgot to enter the name and email fields.

This was bad from a usability and accessibility standpoint, and WordPress 4.4 addressed that problem.

This is what the default comment form looks like now.

How to move the comment text field to the bottom in WordPress 4.4

While this change improves usability, some site owners feel that their users are used to the old design and want to switch back. This is how you can do that.

Move the comment text field to the bottom

Simply add this code snippet to your theme's functions.php file or a site-specific plugin.

 función wpb_move_comment_field_to_bottom ($ fields) $ comment_field = $ fields ['comment']; unset ($ fields ['comment']); $ fields ['comment'] = $ comment_field; devuelve $ campos; add_filter ('comment_form_fields', 'wpb_move_comment_field_to_bottom'); 

That's it, now you can visit a post on your website as a logged out user and see the change in action.

How to move the comment text field to the bottom in WordPress 4.4

We hope this article helped you move the comment text field to the end in WordPress 4.4. You may also want to see our guide on how to improve WordPress comments with From:comments.

If you enjoyed this article, please subscribe to our WordPress YouTube Channel video tutorials. You can also find us on Twitter and Facebook.