Support » Fixing WordPress » 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)
  • Found these under ‘alternating’:


    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.


    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


    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?



    Found this site which looks promising, cant test it yet, but will see tomorrow, thanks for your help.

    WP Plugin: Official Comments


    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?


Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Customising Comments’ is closed to new replies.