-
AuthorPosts
-
September 12th, 2013 at 01:17 #12268Jim King
Hi
Is it possible to easily change the comments window title from “Leave a reply” to ” Please leave a comment” ?
Thanks
Jim…
September 18th, 2013 at 20:51 #12379ZedCryout Creations mastermindCreate a child theme and add this to it’s functions.php file:
function comment_reform ($arg) {
$arg['title_reply'] = __('Please leave a comment');
return $arg;
}
add_filter('comment_form_defaults','comment_reform');If you like our creations, help us share by rating them on WordPress.org.
Please check the available documentation and search the forums before starting a topic.September 19th, 2013 at 11:37 #12395Jim KingHi Zed
I think I found a fix for this by modifying the wp-includes>comments-template.php file. (I renamed and saved the existing file) then I edited the file and did a find “Leave a reply” and replaced with “Please leave a comment” (4 instances) and re-saved. This seemed to work for now, but I assume a WordPress update may overwrite this in the future? Is that the reason behind suggesting doing it as a child theme?
Thanks
Jim..
September 19th, 2013 at 16:53 #12402Zach H.Zed,
that didn’t work for me. I’ve tried it with parabola-child/functions.php and parabola-child/includes/theme-functions.php
It still shows “leave a reply”.
September 22nd, 2013 at 20:07 #12448JimThanks Zed,
I added your recommended code as suggested and it worked fine for me.
Zach, did you add the code at the end between the <?php and the ?> to the functions.php file?
Cheers
Jim…
October 8th, 2013 at 00:42 #12858GaryHow would I go about removing the Leave a reply box from all pages?
October 8th, 2013 at 02:38 #12859JimHi Gary
Go to Pages in the dashboard, choose All Pages and under each go to “quick edit” and uncheck “Allow comments”
That should do it.Jim…
-
AuthorPosts
The topic ‘Change comments title from "Leave a reply"’ is closed to new replies.