Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have a custom child theme of Twenty Twelve.

I want to change the text "Leave a reply" to "Leave a comment", and also remove the website field from the comments form.

How can I do this? Thanks.

share|improve this question
    
Just for your information as well, have a look at one of my answers here –  Pieter Goosen May 11 at 5:48

1 Answer 1

up vote 1 down vote accepted

You can use filters in custom functions to modify the default output of the comments form via your child themes functions file.

Modify the comment form "Leave a reply" text.

add_filter( 'comment_form_defaults', 'wpsites_modify_comment_form_title' );
function wpsites_modify_comment_form_title( $defaults ) {
$defaults['title_reply'] = __( 'Leave a Comment' );
return $defaults;
}

Remove The Website URL Field From Comment Form

add_filter('comment_form_default_fields', 'wpsites_remove_website_url_field');
function wpsites_remove_website_url_field($fields) {
if(isset($fields['url']))
unset($fields['url']);
return $fields;
}
share|improve this answer
    
Fantastic. Thanks Brad. –  Steve May 11 at 6:12

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.