• Birdy

    (@andreas-san)


    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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Derek Rippe

    (@dwrippe)

    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

    Plugin Author Derek Rippe

    (@dwrippe)

    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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Works fine’ is closed to new replies.