Tell me more ×
WordPress Answers 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

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

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

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

share|improve this answer

protected by Community Apr 24 at 8:33

This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site.

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