Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1703

    Hi,

    Is there a way with Habitat to have the comment colour for the author of an article have a different background colour to the rest of the comments.

    I found this article but can’t work out how to translate those suggestions into Habitat.

    Can anyone assist?

    Cheers,

    John

    #35932

    Hi!

    At the end of style.css (wp-content/themes/habitat)

    You can add a line like this:

    .comment-author-admin > div > div { background-color: #74A0CC !important; }

    This is pretty ugly, so play with the color.

    Best regards,

    Noah

    #35933

    Cheers Noah.

    However, that only works for an administrator of the site.

    Is there a way for it to do the same but only for the author of that specific post? Or if it’s easier for by group, such as the ‘Contributors’ group?

    Cheers,

    John

    #35934

    Hi!

    Try something like

    .bypostauthor > div > div { background-color: #74A0CC !important; }

    Best regards,

    Noah

    #35935

    Works a charm. Cheers mate!

    #35936

    Glad that Noah could help you.

    #35937

    I tried this, but it didn’t work :(

    Any suggestions?

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Author Comment Colour’ is closed to new replies.