The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Move comment text b...
 
Share:
Notifications
Clear all

[Solved] Move comment text box to bottom

6 Posts
2 Users
1 Reactions
204 Views
Posts: 4
Topic starter
(@ehsan7)
Active Member
Joined: 2 months ago

Hi

first, thanks for this useful plugin

I want to move comment text box bottom after name and email and etc.

I use this snippet code : 

// move comment form textarea
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');

its worked for default wp comments template, Like below image : 

01

But when I enable wpdiscuz it doesn't work and brings the textarea back to the top again, Like below image :

02

Is there a simple snippet code like the one above that to do Move wpdiscuz comment text box to bottom?

 

5 Replies
Asti
Posts: 7872
 Asti
Support
(@asti)
Illustrious Member
Joined: 7 years ago

Hi,

We're really sorry, but the wpDiscuz doesn't have such a feature. You can do it via the following CSS code:

#wpdcom form {
display: flex;
flex-direction: column-reverse;
}

Insert the code in the "Custom CSS code" textarea, located in the Dashboard > wpDiscuz > Settings > Styles & Colors admin page.

Posts: 4
Topic starter
(@ehsan7)
Active Member
Joined: 2 months ago

Not a good solution.

The submit button will appear at the top of the comment text field !

Is there no way to do this by changing the snippet code I posted above?

Posts: 4
Topic starter
(@ehsan7)
Active Member
Joined: 2 months ago

this is really awesome plugin, but I wonder why there is not comment text field in form editing page 🤔 

2 Replies
Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7872

@ehsan7 

I'm sorry, but the only way to move those is by using CSS code. You can provide the URL, and we can provide the CSS code for you.

(@ehsan7)
Joined: 2 months ago

Active Member
Posts: 4

@asti Thanks

I did that with css

Share: