教程
以Handsome主题为例
1、首先在后台-->设置外观-->开发者设置-->自定义JavaScript加入以下代码:
function addNumber(a) {
var length = document.getElementById("comment").value.length;
if(length> 0){
document.getElementById("comment").focus()
document.getElementById("comment").value += '\n' + a + new Date
}else{
document.getElementById("comment").focus()
document.getElementById("comment").value += a + new Date
}
}
2、打开主题目录的component/comments.php里面的126行到141行:
替换为以下代码:
3、在后台-->设置外观-->开发者设置-->自定义CSS加入以下代码:
.secret_comment {
top: 5px;
}
.OwO.OwO-open .OwO-body {
display:table
}
最后修改:2021 年 02 月 16 日
© 允许规范转载