如何给网站配置在线客服功能

打开wordpress后台,工具-主题编辑器-找到function.php文件

代码模板:

function add_custom_chat_code() {
echo '<!-- 在线客服代码 -->
<script>(function(){document.getElementsByTagName("head")[0].appendChild(document.createElement("script")).src=(location.protocol.toLocaleLowerCase()=="https:"?"https:":"http:")+"//v0.fmkefu.com/cs/js/8440_8369?c=auto";})();</script><a id="egeel-flink" href="http://www.egeel.com" style="position:fixed;font-size:0">亿鸽在线客服系统</a><script>/以下变量可动态赋值,用于传输网站会员信息到亿鸽会话/var egeelVisitorName = "";/客户的名称,留空则以对方所在地为名/var egeelVisitorDesc = "";/备注信息/var egeelLanguage = "";/显示语言(默认:根据客户浏览器自动显示;zh-CN:中文;en-US:英文)/</script>';
}
add_action('wp_footer', 'add_custom_chat_code');

评论

Please Login to Comment.

亿鸽在线客服系统