Adding a personal message for commenters

If you have left a comment, you might have noticed that there is a message for you before the comment field, that looks like this:

It’s pretty simple to implement, though you do need to muck about a very little bit in php. Here’s how:

  1. Log on to the admin panel in your WordPress blog
  2. Go to Appearance > Editor
  3. Select the file called Comments (comments.php)
  4. Find the line <?php if ( comments_open() ) : ?>
  5. Insert the message above this line

I used the tag <H4> for my message, as it comes below a line which is displayed in <H3>. If you want it smaller, you could always go for <H5>. If you do implement this, keep in mind that you will need to add the comment to any and all themes you want to use, as comments.php is not shared between themes.

By posting a comment, you consent to our collecting the information you enter. See privacy policy for more information.

This site uses Akismet to reduce spam. Learn how your comment data is processed.