在制作文章页面模板【single.php】时,在文章的下面我们通过一段代码调用了一个评论功能,这个评论功能是WP程序自带的评论框,样式比较单一。我们可以自己制作一个评论功能模板(comment.php)来替换默认的评论功能模板。
评论功能模板(comment.php)制作步骤:
第一步:下载独立的评论模板。【comment.php】,将它放到我们制作的主题文件夹下;
第二步:打开style.css文件,在CSS文件的最下方,插入下面的CSS样式代码:(相关知识:html视频教程)
/* 评论 */
#comments{ width:100%; margin:10px 0px; padding:8px 0px 5px; text-indent:8px; background:#F3F3F3; border-bottom:1px solid #BBC5CC; }
.commentlist{ }
.commentlist p{ text-indent:0px;}
.commentlist a:link, .commentlist a:visited{ background:none; color:#454545;}
.commentlist a:hover{ background:none; color:#CC0000; text-decoration:underline;}
.commentlist li{ float:left; margin:5p