Mecha CMS

Mecha CMS blog and documentation.

Mark Site Author’s Comments

Set a unique style to the site author’s comments.

Requires comment extension and user extension, and requires you to be logged in when creating a new comment.

Add this CSS code to style the site author’s comments based on the default comments.php template:

li.comment.comment-status\:1 {
  background: #def;
  padding: 1em;

li.comment.comment-status\:1 .comment-figure {
  margin-left: 1em;

Which is based on this markup:

<li class="comment comment-status:<?php echo $comment->status; ?>">