Home / Blog / WordPress
,

How to Move Comment Textarea to Bottom in WordPress website

First published 9 Apr 2017. Tested again in November 2026 on WordPress 7.1.4 and PHP 8.4.

You might have noticed change in Comment Form fields in WordPress 4.4+. The Textarea for comment is moved top of other fields: Name, Email and Website. You might want to move Textarea back to bottom in the WordPress website as it used to be in previous WordPress versions.

Add the code below to your theme’s functions.php file.

function move_comment_field_to_bottom( $fields ) {
    $comment_field = $fields['comment'];
    unset( $fields['comment'] );
    $fields['comment'] = $comment_field;
    return $fields;
}
add_filter( 'comment_form_fields', 'move_comment_field_to_bottom' );

View or fork this snippet on GitHub Gist.

Need this done on a live site? Exivon Tech takes on projects and audits, led by me.

Dhiren Patel

Principal Full-Stack Engineer · Founder, Exivon Tech

I’ve built and run enterprise web platforms and e-commerce for 13 years, and I built ShieldScope, a free WordPress security scanner, and Lede, a free block theme.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.