How to Move Comment Text Field to Bottom

Hello Guys. Hope You Guys Are Safe In Your Home. #stay #home #stay #safe. Protect #Corona. So I Am Here With A New Episode Which Is Very Important For All WordPress Guys. By Default WordPress Comment Text Field Is In Top. Today’s Modern Designer May Put That Comment Field Bottom Or They Design The Comment Area As They Want. We Need To Make The WordPress Comment Field Like The Design. We Need To Make Those Field Up And Down. So Today I am Going To Show You Guys How You Can Change The Position Of Those Field.

By Default WordPress Comment Field Is Like The Screenshot. It Is twentytwenty WordPress Theme Comment Field.

How to Move Comment Text Field to Bottom
How to Move Comment Text Field to Bottom

By Default You Will Get The Comment Field Like IT. So What You Need To Do Is Just Copy The Code Below And Paste That In Your Theme funstions.php.

//Comment Textarea Change Position

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

add_filter( 'comment_form_fields', 'themehat_move_comment_field_to_bottom' );

WordPress Give Us A Filter Which Name Is comment_form_fields. For Knowing More About add_filter Click Here. Inside That Filter We Need A Callback Function Which Is themehat_move_comment_field_to_bottom. On That Callback function We Set A argument which Is $fields. Now We Need To unset The Comment Field. Then Just return $fields. You Will See That Like The Screenshot.

how-to-move-cookies-fields-bottom-of-comment-field
how-to-move-cookies-fields-bottom-of-comment-field

Oh No What Happened? I Don’t Want Like This. I Need cookies Field Down Of Comment Field. Ok No Tension I Will Show That Also. Just Do Like As I Do.

//Comment Textarea Change Position

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

add_filter( 'comment_form_fields', 'themehat_move_comment_field_to_bottom' );

Hope That It Works Fine. You Can Also Change All The Field Position As You Want. Hope This Will Help You Guys. Thanks For Staying With Me. Signing Off Today. #stay #home #stay #safe. Protect #corona.

Please follow and like us:

20 thoughts on “How to Move Comment Text Field to Bottom”

  1. Hi i am kavin, its my first occasion to commenting anyplace, when i
    read this post i thought i could also make comment
    due to this sensible paragraph.

  2. Howdy would you mind letting me know which web host
    you’re using? I’ve loaded your blog in 3 completely different browsers and
    I must say this blog loads a lot faster then most.

    Can you recommend a good web hosting provider
    at a honest price? Thank you, I appreciate it!

  3. Hi! I know this is kind of off topic but I was wondering if you knew where I could get a captcha plugin for my comment form?

    I’m using the same blog platform as yours and I’m having difficulty finding one?
    Thanks a lot!

Leave a Comment

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

RSS
Follow by Email
LinkedIn
LinkedIn
Share