Title: Help COMPLETING admin comment highlight code!
Last modified: August 19, 2016

---

# Help COMPLETING admin comment highlight code!

 *  Resolved [sworddude247](https://wordpress.org/support/users/sworddude247/)
 * (@sworddude247)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/help-completing-admin-comment-highlight-code/)
 * Okay, so I figured out how to highlight admins comments. Here are the 2 codes
   I’m using:
 * This code for the **comments.php**:
 * <li class=”user_id)
    $oddcomment = “admincomment”; echo $oddcomment; ?>” id=”
   comment-”>
 * And this code for the **style.css**:
 * .admincomment{
    background:#FF0000; border:1px solid #99FF00; padding:5px 0px
   5px 0px; }
 * **The** problem is I want it to be a user ID instead of “Admincomment” because
   for some reason it is also highlighting another subscriber users comments… PLEASE
   HELP!

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Arley McBlain](https://wordpress.org/support/users/arleym/)
 * (@arleym)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/help-completing-admin-comment-highlight-code/#post-1069046)
 * instead of
 * > $oddcomment = “admincomment”;
   >  echo $oddcomment;
 *     ```
       if (1 == $comment->user_id) $oddcomment = "admincomment"; echo $oddcomment;
       ```
   
 * the if statement checks if you’re an admin (1)
 *  Thread Starter [sworddude247](https://wordpress.org/support/users/sworddude247/)
 * (@sworddude247)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/help-completing-admin-comment-highlight-code/#post-1069050)
 * Thanks, but then what should I change about the style.css file?
 *  Thread Starter [sworddude247](https://wordpress.org/support/users/sworddude247/)
 * (@sworddude247)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/help-completing-admin-comment-highlight-code/#post-1069190)
 * Resolved 🙂 !
 *  [polle001](https://wordpress.org/support/users/polle001/)
 * (@polle001)
 * [17 years ago](https://wordpress.org/support/topic/help-completing-admin-comment-highlight-code/#post-1069250)
 * Hi, how about highlighting admin comments in 2.7 ?
 * I know by author I can use something like this:
 *     ```
       .bypostauthor{
       background-color: #4d535f;
       }
       ```
   
 * Anyone can tell the way for the admin ?
 * Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Help COMPLETING admin comment highlight code!’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [polle001](https://wordpress.org/support/users/polle001/)
 * Last activity: [17 years ago](https://wordpress.org/support/topic/help-completing-admin-comment-highlight-code/#post-1069250)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
