Title: Customising Comments
Last modified: August 18, 2016

---

# Customising Comments

 *  [adeking](https://wordpress.org/support/users/adeking/)
 * (@adeking)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/customising-comments/)
 * Hi,
 * I havent had much look with my last thread so let me re-phrase my question.
 * Can anybody give me advice or point me in the direction of documentation telling
   me how to customise comments. I need to be able to change the required fields
   and the appearence depending on who is adding the comment.

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [yosemite](https://wordpress.org/support/users/yosemite/)
 * (@yosemite)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/customising-comments/#post-460960)
 * Found these under ‘alternating’: [http://wordpress.org/tags/alternating](http://wordpress.org/tags/alternating)
 *  Thread Starter [adeking](https://wordpress.org/support/users/adeking/)
 * (@adeking)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/customising-comments/#post-460977)
 * Hi,
 * Thanks for these, they are useful. However this mainly looks at changing the 
   comments so that every other comment has a particular colour.
 * I want my blog to recognise that the user adding the comment is an administrator
   and apply a different css style to the comment box.
 * Can anyone offer the php if statement that would be required to make this change?
 * A good example of this is in Andreas blog where his posted comments differ in
   style from others.
 * [http://andreasviklund.com/](http://andreasviklund.com/)
 * Thanks
 *  [yosemite](https://wordpress.org/support/users/yosemite/)
 * (@yosemite)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/customising-comments/#post-460993)
 * I’ve seen some examples around here, didn’t save a link though. Seem to remember
   a ‘My Comments’ plugin that allowed you to apply different css to ‘your’ comment…
 * EDIT: Found the author of that one: [Martin H�egh Mortensen](http://dailydoodles.dk/)
 *  Thread Starter [adeking](https://wordpress.org/support/users/adeking/)
 * (@adeking)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/customising-comments/#post-461017)
 * Hi,
 * Thanks for that Yosemite, sorry for me being a pain, but I cannot speak any other
   languages and I cannot understand the blog you sent me.
 * Sorry about that, do you know where I can simply click to download the plugin/
   widget?
 * Thanks
 *  Thread Starter [adeking](https://wordpress.org/support/users/adeking/)
 * (@adeking)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/customising-comments/#post-461019)
 * Hi,
 * Found this site which looks promising, cant test it yet, but will see tomorrow,
   thanks for your help.
 * [http://inner.geek.nz/archives/2005/01/12/wp-plugin-official-comments/](http://inner.geek.nz/archives/2005/01/12/wp-plugin-official-comments/)
 * ade
 *  [gpence](https://wordpress.org/support/users/gpence/)
 * (@gpence)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/customising-comments/#post-461076)
 * I’ve been trying to implement Brett’s Official Comments plugin, but I’ve run 
   into a problem with the PHP that I can’t seem to troubleshoot. I’ve activated
   the plugin and added the class “commentOfficialUser” to the stylesheet, then 
   I edited comments.php to include the following inside the loop:
 * 
    <?php if(is_wpuser_comment() != 2) echo "<li class="<?php echo $oddcomment;?
   >" id="comment-<?php comment_ID() ?> ">";  else echo "<li class="<?php echo '
   commentOfficialUser '; ?>" id="comment-<?php comment_ID() ?>">" ?>
 * I’m trying to test if user #2 (me) is the user, if not then use the alternating
   backgrounds as normal, but if it is, use the “commentOfficialUser” class.
 * Unfortunately, I get an error about an unexpected “?” in the line and I’m lost—
   any ideas?
 * Thanks,
    gpence

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Customising Comments’ is closed to new replies.

## Tags

 * [alternating](https://wordpress.org/support/topic-tag/alternating/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 3 participants
 * Last reply from: [gpence](https://wordpress.org/support/users/gpence/)
 * Last activity: [19 years, 6 months ago](https://wordpress.org/support/topic/customising-comments/#post-461076)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
