Styling admin comment
Here is Wordpress default comment template:
<li <?php echo $oddcomment; ?> id="comment-<?php comment_ID() ?>">
<cite><?php comment_author_link() ?></cite> Says:
<?php if ($comment->comment_approved == '0') : ?>
<em>Your comment is awaiting moderation.</em>
<?php endif; ?><br />
<small class="commentmetadata"><a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('F jS, Y') ?> at <?php comment_time() ?></a> <?php edit_comment_link('edit',' ',''); ?></small>
<?php comment_text() ?>
</li>
In the first line, just look for <?php echo $oddcomment; ?> and replace it with:
<? if($comment->comment_author == "Your nickname") echo ' class="admin"'; else echo $oddcomment; ?>
Then, in your stylesheet, add a different style for .admin ! :)
One Response to “Styling admin comment”
Leave a Comment
Works? Doesn't work? Other tips? Please leave a comment! :)
layout forevermore viagra
every so suffocating in a few words