Want create site? Find Free WordPress Themes and plugins.

By default, WordPress comment field has comment box (Textarea) above other fields (name, email address and URL). Do you know how to move comment field below other fields?

Comment form with comment box above

Comment form with comment box above

I was recently developing WordPress theme for a Podcast website. I was provided HTML/CSS theme and was hired to convert it to WordPress theme. As per the design, I’d to place comment box below other fields. But, WordPress by default outputs comment box above. So, I needed a solution to solve this issue. After doing some research, I found an easy fix for this issue. I’m calling this an easy fix because all you’ve to do is place a function in functions.php and then you’ll see the magic!

Here’s the code (with function) that you’ve to add in functions.php of your theme:

function wpc_move_comment_field_to_bottom( $fields ) {
$comment_field = $fields['comment'];
unset( $fields['comment'] );
$fields['comment'] = $comment_field;
return $fields;
}

add_filter( 'comment_form_fields', 'wpc_move_comment_field_to_bottom' );

After you add above code in functions.php, comment field automatically moves down. This is how comment box looked in the website after I added above code:

Comment form with comment box below

Comment form with comment box below

Isn’t is really simple?

Wrapping Up:

If you have any question related to this post, please leave a comment below. I’d love to hear your comments and help you to the fullest. And, keep following WPCounsel for the latest WordPress resources.

Did you find apk for android? You can find new Free Android Games and apps.