Add text above comment form


Author Message
Me

Posted: 10/26/2014
Quote message 

Hi everyone. I have this issue I don't seem to be able to solve. I would like to add some text above the comment form saying something like "thank you for your comment, this is not allowed blahblahblah" but I don't find where I can add this text. Could someone please help me? That would be so amazing!
 
Me

Posted: 10/26/2014
Quote message 

Could someone please help me? I'm desperate with this ...
 
Philip

Posted: 10/26/2014
Quote message 

Hi,

In WordPress, go to the Dashboard, Settings, Discussion, and at the bottom is the field Comment Form Prompt. You can type whatever you like in there and that will be displayed for you above the comment field. The default text is 'Leave a Reply'.
 
Me

Posted: 10/26/2014
Quote message 

Dear Philip

Thank you for your time! Too bad I don't have this option in wordpress. can't I change a code in the theme folder?
 
gcm

Posted: 10/26/2014
Quote message 

I don't know if this will help you or not but in the wp-includes directory (not the theme directory) there is a file called comment-template.php you might try to change. I was able to change Leave a Reply to Please Leave a Reply. Look for "title_reply" and make change where it says Leave a Reply

[

quote=Me]
Dear Philip

Thank you for your time! Too bad I don't have this option in wordpress. can't I change a code in the theme folder?


 
Me

Posted: 10/26/2014
Quote message 

Thank you gcm. I tried this already but it doesn't seem to have an influence on the appearance of the comment form :( It must be that some theme file overrides it but I can't find what/where ...
 
jrgweb

Posted: 10/27/2014
Quote message 

@Me

In comment-template.php there are at least 4 places that reference "title-reply.
I believe they are all at the bottom of the file.

Also, if you have any plugins like woo commerce check too.
 
Philip

Posted: 10/27/2014
Quote message 

https://wordpress.org/support/topic/how-to-change-wording-of-leave-a-reply?replies=39

The best way to change the wording "Leave a reply" is to use the filter.
To make it say "Submit a comment:", place this code in your functions.php file:


function comment_reform ($arg) {
$arg['title_reply'] = __('Submit a comment:');
return $arg;
}
add_filter('comment_form_defaults','comment_reform');

I am sorry for my earlier comment, that option is proved in wordpress.com sites. I woner why not in wordpress.org?

I also found this plugin which may give people what they want.

https://wordpress.org/plugins/custom-comment-form-title/