Change Comment Form Title “Leave a comment” WordPress

Change Comment Form Title “Leave a comment” WordPress

comment_form_defaults filter allow to change comment form title “Leave a comment” to other custom text, filter comment_form_defaults help you to change it.

<?php
  add_filter('comment_form_defaults', 'change_comment_heading_callback', 20);

  function change_comment_heading_callback( $defaults ){
    $defaults['title_reply'] = __('Leave a Reply', 'theme-child');
    return $defaults;
  }
?>

Code goes in function.php file of your active child theme (or active theme).

Was this article helpful?
YesNo

18 comments

  1. Great website. A lot of useful info here. I’m sending it to several friends ans
    additionally sharing in delicious. And of course, thank you for your sweat!

  2. I’d like to thank you for the efforts you have put in penning this site.
    I really hope to view the same high-grade blog posts by you
    in the future as well. In truth, your creative writing abilities
    has motivated me to get my own, personal website
    now 😉

  3. My spouse and I absolutely love your blog and find the majority of your post’s to
    be exactly I’m looking for. Again, awesome website!

  4. I must thank you for the efforts you have put in writing this website.
    I really hope to check out the same high-grade content from you in the future as well.
    In truth, your creative writing abilities has motivated me
    to get my own site now 😉

  5. Hey there, I think your site might be having browser compatibility issues.
    When I look at your blog in Opera, it looks fine but when opening in Internet
    Explorer, it has some overlapping. I just wanted to
    give you a quick heads up! Other then that, excellent blog!

  6. Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point.
    You clearly know what youre talking about, why throw away
    your intelligence on just posting videos to your blog when you could be giving us something informative to read?

  7. Hi are using WordPress for your blog platform? I’m new to the blog world but I’m trying to get
    started and set up my own. Do you require any html coding knowledge to make your own blog?

    Any help would be greatly appreciated!

  8. Hey! I know this is kinda off topic but I’d figured I’d
    ask. Would you be interested in trading links or maybe
    guest authoring a blog article or vice-versa? My blog addresses a lot of
    the same topics as yours and I feel we could greatly benefit from each
    other. If you happen to be interested feel free to shoot me an e-mail.
    I look forward to hearing from you! Wonderful blog by the
    way!

  9. Wow, superb blog layout! How long have you ever been running a blog?
    you make blogging glance easy. The full look of your site is wonderful, as smart as the content!

  10. Hello! This is kind of off topic but I need some guidance from an established blog.
    Is it very difficult to set up your own blog?
    I’m not very techincal but I can figure things out pretty fast.
    I’m thinking about setting up my own but I’m not sure where to begin. Do you have any points or suggestions?
    Cheers

  11. Hey there, You have done an excellent job. I’ll definitely Digg it and personally
    recommend it to my friends. I’m sure they’ll be benefited from this website.

  12. I lіke the valuable infοrmation you supply fߋr your articles.

    I’ll bookmark your blog and check aցaіn right heгe regularly.

    I am somewhat ѕure I’ll bе informed lоts of neԝ stuff rіght here!
    Gօod luck for the neҳt!

Leave a comment

Your email address will not be published. Required fields are marked *