WordPress “Official Comment” Plugin

I thought it’d be cool and be even more egomaniac to make my own comments become stand out a little more from everyone else’s with this plugin.

1. Download Official Comments plugin in.
2. Place and unzip the file in /wp-contents/plugins/ directory
3. Edited /wp-contents/themes/_theme_of_choice/comments.php and added the following to line 29 (adds a nice css style to the comment box):

1
< li class="comment <?php echo (is_wpuser_comment() ? ' commentOfficialUser' : ''); ?>" id="comment-&lt?php comment_ID() ?>">

4. On the same file, also added the following to line 30:

1
<?php if(is_wpuser_comment() != 0) {echo "Official comment from ";} ?>

5. Complete the set up by adding the following css code to /wp-contents/themes/_theme_of_choice/style.css

1
2
3
4
.commentOfficialUser {
        border: 1px solid #bbb;
        background-color: #ddd;  
        }