Support » Themes and Templates » Style Author Comment and not it’s thread

  • Here’s my problem… I’m trying to style an author comment, but only the <li>. I have threaded comments and when I apple a different background color to the li, then every comment’s background in that thread gets changed. I tried this: ul.commentlist li.comment-author-admin.depth-1 {background:#252525;} but it’s not working??

    Any ideas?

Viewing 5 replies - 1 through 5 (of 5 total)
  • esmi

    (@esmi)

    Forum Moderator

    Assuming by “author”, you mean the post’s author, try styling on ul.commentlist li.bypostauthor.

    Yes, I do mean post author… and .bypostauthor does the same thing

    Any other suggestions?

    esmi

    (@esmi)

    Forum Moderator

    You probably need to add another CSS block to re-style the children of ul.commentlist li.bypostauthor or use something like ul.commentlist > li.bypostauthor.

    I’m trying, the the background color just overrides the background color of the child since it’s all technically inside li.

    What about the depth-1 class? Can I say something like: if depth is 1 and commented by author, then display like this…

    That’s what I tried to do with ul.commentlist li.comment-author-admin.depth-1, but no luck

    So is there any other class I should be using?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Style Author Comment and not it’s thread’ is closed to new replies.