Notice: Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.) in /home/runcloud/webapps/codexcoach/web/wp/wp-includes/functions.php on line 5857

Change Comment Form Title “Leave a comment” WordPress

Change Comment Form Title “Leave a comment” WordPress
4291 Views
0
(0)

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

How useful was this blog?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this blog.

  • CodexCoach

    - Web Development Expert

    CodexCoach is a skilled tech educator known for easy-to-follow tutorials in coding, digital design, and software development. With practical tips and interactive examples, CodexCoach helps people learn new tech skills and advance their careers.

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 *