How to style comments by a role in default theme
-
Hello , can you help me to make comments styling for every specific role work in BP default theme ?
I have found and tried these codes below but they doesn’t work , I think that because of this code which doesnt display roles: ` ` in the class
http://planetozh.com/blog/2009/11/how-to-style-editor-or-any-role-comments-in-wordpress/
http://snipplr.com/view/23839/
comments.php:
``
css file:
`
#commentlist li { border:2px solid white; } /* not logged or subscriber */
#commentlist li.administrator { border:2px solid red } /* blog admin */
#commentlist li.editor { border:2px solid blue } /* editor */
`
- The topic ‘How to style comments by a role in default theme’ is closed to new replies.
<?php // The extra stuff to get commenter's role
$user_id = $comment->user_id;
$role = ( isset( $roles[$user_id] ) ? $roles[$user_id] : ” );
?>
<li class="”>
By –