Lately I have noticed that when I leave comments sometimes the readers leaving comments aswell has no idea that I am the author of the post. This made me realise that I had to find a way of showing that I am the author of the posts in the comments section.

After some consideration I decided on just changing the background colour of my comments, I’ve seen many other blogs using this approach and it seems to work well and looks nice and clean.

Here is how I did it:

Open up comments.php and find

<li class=”<?php echo $oddcomment; ?>” id=”comment-<?php comment_ID() ?>”>

Replace it with

<li class=”<?php if (1 == $comment->user_id) $oddcomment = “authorcomment”;

echo $oddcomment; ?>” id=”comment-<?php comment_ID() ?>”>

After that add the following to you style.css file

.authorcomment {
background-color: #B3FFCC !important;
}

And that is it, all the comments made by admin will now be displayed with a background colour. If you would like to change the background colour just modify the hex value you put in the style.css file.