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
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
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/
Ok, but how do I identify the admin IDs using those classes?
Thx
Check that, I see how they can be used in styles but it's not working for me somehow.
This topic has been closed to new replies.