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 would like to remove "leave a reply" in the comment form in twenty eleven. How can I do this? Thanks in advance.

share|improve this question
add comment

2 Answers

You can filter the default comment_form arguments (which is what's causing the "leave a reply").

Just drop this in functions.php or in a plugin file. It would probably be better to put it in a plugin and keep your twenty eleven theme unedited (read: easily updated).

<?php
add_filter( 'comment_form_defaults', 'wpse33039_form_defaults' );
function wpse33039_form_defaults( $defaults )
{
    $defaults['title_reply'] = '';
    return $defaults;
}
share|improve this answer
add comment

edit comments.php, and find: comment_form();

edit to: comment_form(array('title_reply'=>''))

share|improve this answer
add comment

protected by Community Apr 24 '13 at 8:33

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

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