Change Comment Form Title “Leave a comment” WordPress

Change Comment Form Title “Leave a comment” WordPress
2405 Views

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', 'cxc_change_comment_heading_callback', 20 );

function cxc_change_comment_heading_callback( $defaults ){
	$defaults['title_reply'] = __('Leave a Reply', 'cxc-codexcoach');
	return $defaults;
}
?>

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

Was this article helpful?
YesNo

19 comments

  1. 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!

  2. 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!

  3. 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

  4. 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.

  5. 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!

  6. Hey There. I found your blog the use of msn. This is a very well-written article. I’ll be sure to bookmark it and return to read more of your helpful info. Thanks for the post.

Leave a comment

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