WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Get special comment styling for editors (3 posts)

  1. Jeremy Herve
    Member
    Posted 3 years ago #

    Hi,

    I am facing a small issue styling comments for a custom theme: I would like to be able to style comments differently for all users having the "editor" role. However, as far as I know only 2 dedicated css classes exist today:

    • byuser, for all registered users
    • bypostauthor, for the author of the entry

    Is there a way I could manage this somehow?

    Thank you for your help!

    Source: Core comment-template file in trunk

  2. Chip Bennett
    Theme Review Admin
    Posted 3 years ago #

    Here is an older (but, as far as I can tell, still valid) method:
    http://planetozh.com/blog/2009/11/how-to-style-editor-or-any-role-comments-in-wordpress/

  3. Jeremy Herve
    Member
    Posted 3 years ago #

    Excellent!

    Thank you Chip, that's exactly what I was looking for. I will give it a try!

Topic Closed

This topic has been closed to new replies.

About this Topic