Forums

Style Multiple Comment Authors (4 posts)

  1. Scotm
    Member
    Posted 1 year ago #

    I have successfully styled my admin comments using:

    <div class="commentclass<?php if ($comment->user_id == 1) { echo ' admincomment'; } ?>">

    However I need to add two admin IDs and can't find a solution.

    Thx

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 1 year ago #

    just use the class WP already assigns like:

    .commentlist .bypostauthor {}
    .commentlist .comment-author {}
    .commentlist .comment-author-admin {}

    http://digwp.com/2010/05/default-wordpress-css-styles-hooks/

  3. Scotm
    Member
    Posted 1 year ago #

    Ok, but how do I identify the admin IDs using those classes?

    Thx

  4. Scotm
    Member
    Posted 1 year ago #

    Check that, I see how they can be used in styles but it's not working for me somehow.

Topic Closed

This topic has been closed to new replies.

About this Topic