博客添加在线联系 DaoVoice
# 博客添加在线联系 DaoVoice
去注册,注册 (opens new window)需要邀请码 (opens new window),我给出我的06591aa4
;
查看app_id
复制app_id
,打开目录/themes/next/layout/_partials/head.swig
,添加代码
{% if theme.daovoice %}
<script>
(function(i,s,o,g,r,a,m){i["DaoVoiceObject"]=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;a.charset="utf-8";m.parentNode.insertBefore(a,m)})(window,document,"script",('https:' == document.location.protocol ? 'https:' : 'http:') + "//widget.daovoice.io/widget/0f81ff2f.js","daovoice")
daovoice('init', {
app_id: "{{theme.daovoice_app_id}}"
});
daovoice('update');
</script>
{% endif %}
打开主题配置文件,加入
# Online contact
daovoice: true
daovoice_app_id: {你刚刚复制的 app_id}
样式修改的话可以在刚刚,应用设置-聊天设置修改
欧了部署试试
如果本文对您有所帮助,请打赏给我吧,我先送个你也红包往下看,你可以把扫到红包打赏个我哦!
上次更新: 2022/12/05, 09:12:57