|
  
- UID
- 22
- 帖子
- 340
- 精华
- 1
- 积分
- 401
- 威望
- 672
- 金豆
- 397
- 阅读权限
- 40
- 在线时间
- 48 小时
- 注册时间
- 2008-6-3
|
楼主
发表于 2008-8-18 22:43
| 只看该作者
高亮显示管理员留言
原文:http://www.mattcutts.com/blog/highlight-author-comments-wordpress/
1 编辑样式表
添加下面一句- .authcomment {
- background-color: #B3FFCC !important;
- }
复制代码 注:#B3FFCC 可改成你喜欢的颜色
2 编辑comments.php
找到- <li class=”<?php echo $oddcomment; ?>” id=”comment...
复制代码 修改成-
- <li class=”<?php
- /* Only use the authcomment class from style.css if the user_id is 1 (admin) */
- if (1 == $comment->user_id)
- $oddcomment = “authcomment”;
- echo $oddcomment;
- ?>” id=”comment...
复制代码 改完,收工。自己看一下效果吧 |
-
1
评分次数
-
|