🎉 恭喜你发现了宝藏!

子比主题 – 评论自定义颜色

文章最后更新时间:2025-12-12 02:19:33

emmm…怎么说呢,也不知道这个功能是用来干啥的,总感觉很鸡肋的样子,亲测可以使用,不过本站不会搞这东西,没啥用就是了,需要的直接拿走~

图片[1] - 子比主题 – 评论自定义颜色 - 诺守博客

教程

子比主题目录下打开template/comments.php 搜索

<?php echo _pz('comment_submit_text') ?: '提交<a target="_blank" href="https://www.muooy.cn/tag/%e8%af%84%e8%ae%ba" title="View all posts in 评论">评论</a>'; ?>

在他的前面一行添加:

然后前往inc/functions/zib-comments-list.php 搜索

function zib_get_comments_list($comment, $depth = 0, $echo = true)

在合适的位置添加:

再找到

$html .= '<div class="mb10 comment-content" id="comment-content-' . $comment_id . '">' . $con . '</div>';

修改为

$html .= '<div class="mb10 comment-content" id="comment-content-' . $comment_id . '"  style="color:' . $color . '">' . $con . '</div>';

最后再添加function代码,添加在func.php文件内

子比主题 – 评论自定义颜色 - 诺守博客
子比主题 – 评论自定义颜色
此内容为付费阅读,请付费后查看
188积分
本站资源均为作者提供和网友推荐收集整理而来,仅供学习和研究使用,请在下载后24小时内删除,谢谢合作!
付费阅读
© 版权声明
THE END
点赞10赞赏 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容