Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to style comments by a role in default theme


  • 4ella
    Participant

    @4ella

    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:
    `

      <?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 –

    `
    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 */
    `

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to style comments by a role in default theme’ is closed to new replies.
Skip to toolbar