Web Hosting Geeks | Web Hosting Experts
Need help? Call us 1(866)TOP-HOST

14655 reviews 1734 hosting providers

Questions & Answers

Adding text before WordPress comment box

Mar 22, 2013 by MirrorXYZ
I want to add the text “Leave your comments here please” right before the comment form, but I am not quite sure how to  do it. Can anyone please help me out?
Many thanks

3 Answers

0 votes
Mar 22, 2013 by expert
To add a text line before the comment text, edit your functions.php and add the following line.
add_filter( 'comment_form_default_fields','leave_comment_text');
function  leave_comment_text( $text ) {
$text[] = ' Leave your comments here please';
return $text;
0 votes
Mar 22, 2013 by WebProX
0 votes
Mar 22, 2013 by WebGuru
To change the default 'Leave a Reply'  try this code
<?php comment_form(array('title_reply'=>'</h3><h4 class="comment-reply-title"> Leave your comments here please </h4><h3>','fields' => array()); ?>