WPIntell

Source evidence

Works fine

Custom Comment Form Title · review · 2013-10-27T12:50:00+00:00

praisesentiment
mediumseverity
0.61relevance
4replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

6 / 30 rows with source links

20.0% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

24 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

review · 5 stars
andreas-san unresolved
Hi Derek, Works fine with my “Twenty Eleven”-Theme. Would be great to have further textfield to customise e.g. “comment_notes_before”; “comment_notes_after” I tried it on my own in the comments.php, but it didn’t work 🙁 Would be great to see a update for this. br to Seattle 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! 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). Hi Derek, thank you so much for the code. It works fine. Br Andreas

Comments

4 shown
Derek Rippe 2013-10-28T14:57:00+00:00

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!

andreas-san 2013-10-28T15:53:00+00:00

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

Derek Rippe 2013-10-31T15:29:00+00:00

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).

andreas-san 2013-11-03T14:31:00+00:00

Hi Derek, thank you so much for the code. It works fine. Br Andreas