首页 > 新闻资讯 > 在WordPress2.7中区别显示作者留言

在WordPress2.7中区别显示作者留言

0条评论
标签:
更多

在老版本的WordPress中,你必须在程序上做一些修改才能给作者留言添加样式。但在WordPress2.7中,wp_list_comments()函数会自动给作者留言和用户留言添加不同的class。利用这一点,给作者留言添加样式就很简单了:

li.bypostauthor {
    /* 作者留言的CSS样式 */
}

li.byuser {
    /* 注册用户留言的CSS样式 */
}

原文链接:http://www.wprecipes.com/how-to-style-author-comments-in-wordpress-27

* 版权声明:作者WordPress啦! 转载请注明出处。

发表新评论

此内容将保密,不会被其他人看见。
  • 自动将网址与电子邮件地址转变为链接。
  • 允许HTML标签:<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • 自动断行和分段。

更多关於格式化选项的信息

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.