Simple Author Highlighting and alternate post highlighting combined
-
I’m using WP 1.5 and a hacked up version of the Kubrick theme. I changed the code exameple here:
https://blog.deconcept.com/2004/11/13/wordpress-author-comment-highlighting/
…so it works with the alternate highlighting in Kubrick. In the comments.php file replace this (should be line 29):
<li class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>">
…with this line:
<li class="<?php if ($comment->comment_author_email == "[email protected]") echo 'mycomment'; else echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>">
Then add this to your syle.css:
li.mycomment {
background-color: #FFFFF7;
border: solid 1px #5B0100;
}Works fine for me. See it in practice here:
https://simondorfman.com/Games/Spellfire/2005/03/12/to-the-pain-thieves-deck/#comments
- The topic ‘Simple Author Highlighting and alternate post highlighting combined’ is closed to new replies.