Advertisement

Move the comment text field to the bottom in WordPress 4.4

With WordPress 4.4, the comment text field is moved above other fields like "Name", "Website" and "Email". If you are not happy with the new layout of the comment form, here is how to revert it and place the comment text field back to the bottom.

Our ready "Tony" notified me that the layout was changed immediately after the upgrade. Here is a solution which will allow you to change the default layout of the comment form and restore the comment text field position.

To move the comment text field to the bottom in WordPress 4.4, you need to do the following:

  1. Open the file "functions.php" which is located in your theme directory. If your theme comes without such file, you need create a new one.
  2. Place the following code in functions.php (add it to the bottom of the file before the ?> tag):
    function wp34731_move_comment_field_to_bottom( $fields ) {
    $comment_field = $fields['comment'];
    unset( $fields['comment'] );
    $fields['comment'] = $comment_field;
    
    return $fields;
    }
    add_filter( 'comment_form_fields', 'wp34731_move_comment_field_to_bottom' );
  3. Save the file and reload any page with the comment form.

That's it. Before:

Wordpress 4.4 comments form defaultAfter:

Wordpress 4.4 comments form below

Update: Here is ready-to-use plugin which you can install and use in your WordPress 4.4:

Download WordPress plugin: Move comment text field down for WordPress 4.4

It does exactly the same thing as described in this article. Put it into your wp-content\plugins directory.

Tip: consider using child themes in WordPress instead of the direct modifying of your theme files. This will allow you to avoid possible upgrade issues in the future, especially if you are using some third-party theme.

Support us

Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:

If you like this article, please share it using the buttons below. It won't take a lot from you, but it will help us grow. Thanks for your support!

Advertisеment

Author: Sergey Tkachenko

Sergey Tkachenko is a software developer who started Winaero back in 2011. On this blog, Sergey is writing about everything connected to Microsoft, Windows and popular software. Follow him on Telegram, Twitter, and YouTube.

10 thoughts on “Move the comment text field to the bottom in WordPress 4.4”

          1. Can it be like so?(compiled it with credits):
            It doesn’t work :( Delete all as i think that’s a spam method :( And there is the code :/**
            Plugin Name: Move the comment field down
            Description: This plugin moves the comment field down. Can be used on WordPress 4.4+.
            Author: Sergey Tkachenko
            Author URI: https://winaero.com
            Version:1.0
            */
            function wp34731_move_comment_field_to_bottom( $fields ) {
            $comment_field = $fields[‘comment’];
            unset( $fields[‘comment’] );
            $fields[‘comment’] = $comment_field;
            return $fields;
            }
            add_filter( ‘comment_form_fields’, ‘wp34731_move_comment_field_to_bottom’ );

          2. I updated the article. Added ready-to-use plugin. Download and install it.
            It works as expected (this site is using it right now).

          3. It looks same like my one.(but you have wp_44 function, not 34731, by the way i think that i don’t break it :))

  1. With great pleasure, I read your articles and implement everything on my site. You make very high quality content. Sincerely, David.

Leave a Reply

Your email address will not be published.

css.php
Using Telegram? Subscribe to the blog channel!
Hello. Add your message here.