Hi Birdy,
Thanks for the 5-star rating. I’ll take your request into consideration and see if it’s a worthwhile functionality to add to the plugin. Thanks!
Thread Starter
Birdy
(@andreas-san)
Hi Derek,
just for explanation why I want to change the other texts.
in english it may be not that important to change the other text fields.
Do you know the german differences in the form of adress between the official “Sie” and the more private “Du”?
Some of my websites are very formal, all adresses are “Sie” and ten comes the comment field with the personal “Du”.
Thanks for the consideration.
br
Hey Birdy, in the meantime here is another solution to get you by:
// Change additional comment_form() fields
add_filter( 'comment_form_defaults', 'my_comment_form_defaults' );
function my_comment_form_defaults( $defaults ) {
$defaults['comment_notes_before'] = __( '<p class="comment-notes">' . __( 'Your email address will not be published.' ) . ( $req ? $required_text : '' ) . '</p>' );
$defaults['comment_notes_after'] = __( '<p class="form-allowed-tags">' . sprintf( __( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: %s' ), ' <code>' . allowed_tags() . '</code>' ) . '</p>' );
return $defaults;
}
Just place this in the functions.php file for your theme and change the variables as you see fit.
*Note, this will change these variables for the entire theme. It does not offer a post-by-post customization option (which probably isn’t regularly needed for these fields).
Thread Starter
Birdy
(@andreas-san)
Hi Derek,
thank you so much for the code.
It works fine.
Br Andreas