WordPress.org

Ready to get started?Download WordPress

Forums

Different style for admin and author comments (11 posts)

  1. polle001
    Member
    Posted 4 years ago #

    I can style author comments in WP 2.8 just using something like this in the css style:

    .bypostauthor{
    background-color: #red;
    }

    If I add also something like this is not working:

    .admincomment{
    background-color: #blue;
    }

    Any idea how can I give the admin a style different to author and guests ?

    Thanks.

  2. polle001
    Member
    Posted 4 years ago #

    Anyone ?

  3. polle001
    Member
    Posted 4 years ago #

    Still looking into this.

    Thanks.

  4. polle001
    Member
    Posted 4 years ago #

    Can anyone help ?

  5. Mark / t31os
    Moderator
    Posted 4 years ago #

    You can see a list of the classes etc.. here..
    http://wordpress.org/support/topic/221693?replies=42

    Couldn't find a codex page for it, so i hope that covers it.. :)

  6. polle001
    Member
    Posted 3 years ago #

    Still looking for a correct way to do this.

    I have this:

    .bypostauthor{
    background-color: #4d535f;
    color: white;
    }
    
    .comment-author-admin{
    background-color:#000;
    color:white;
    }

    The problem comes in the replies, admin comments become authors color.

    Is there a way to have admin comments in a specific color, no matter the depth of it ?

    Thanks.

  7. polle001
    Member
    Posted 3 years ago #

    Still looking for this if someone wants to help.

    Thanks.

  8. Edward Caissie
    Theme Review Admin
    Posted 3 years ago #

    A link to your blog and what your active theme is would be helpful ...

  9. polle001
    Member
    Posted 3 years ago #

    Hi cais, what for a link is needed or helpful ? Its just a style.

    Anyone that knows how ?

    Thanks.

  10. Spencer Finnell
    Member
    Posted 3 years ago #

    What you have now should style the
    <li> with a class of .comment-author-admin The comments by the admin will have that class applied to them no matter what depth they are.

  11. Edward Caissie
    Theme Review Admin
    Posted 3 years ago #

    Hi cais, what for a link is needed or helpful ? Its just a style.

    ... it is your choice. I was only making a suggestion to allow someone to give you a specific answer related to your site and installation. Good Luck.

Topic Closed

This topic has been closed to new replies.

About this Topic