WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Change comments form title on a page by page basis

I'm looking to change the comments form title (my theme defaults this to "Leave a Comment" or "Leave a reply to").

I thought perhaps I could add a hook to comment_form_defaults but my snippet below isn't working... any thoughts?

add_filter('comment_form_defaults', 'askQuestion');

function askQuestion($defaults) {
  $defaults['title_reply'] = 'Ask a Question';
  $defaults['title_reply_to'] = 'Your text %s';
  return $defaults;

This is being added to the HTML editor of the page editor within wordpress. We are using the ExecPHP plugin to compile code within posts/pages. We are looking for a way to do this on just this page, not every comment form on our blog.

share|improve this question

migrated from stackoverflow.com Aug 7 '11 at 4:51

This question came from our site for professional and enthusiast programmers.

marked as duplicate by t31os, Rarst Sep 11 '11 at 21:49

This question was marked as an exact duplicate of an existing question.

Please be clear for what u need to ask. As i approach to your query.you should first login to your admin panel.now click on appearance and then click editor option.here comes all the files of your theme directory.Look for comment.php. Just open it up and look for default message.Now this is the place where you can replace your own custom message.

share|improve this answer
Amar - please read the question - "We are looking for a way to do this on just this page, not every comment form on our blog." Your suggestion would effect every comment form on the blog. – themerlinproject Aug 6 '11 at 15:49

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