
语言 🇨🇳 简体中文
🇺🇸
English
🇧🇬
Български
🇨🇳
简体中文
🇹🇼
繁體中文
🇭🇷
Hrvatski
🇩🇰
Dansk
🇳🇱
Nederlands
🇺🇸
English (US)
🇨🇦
Français (Canada)
🇫🇷
Français (France)
🇩🇪
Deutsch
🇨🇾
Ελληνικά (Κύπρος)
🇬🇷
Ελληνικά
🇮🇱
עברית
🇮🇹
Italiano
🇯🇵
日本語
🇰🇷
한국어
🇵🇱
Polski
🇧🇷
Português (Brasil)
🇷🇺
Русский
🇺🇦
Русский (Украина)
🇧🇦
Српски (БиХ)
🇷🇸
Srpski (Latinica)
🇲🇪
Српски (Црна Гора)
🇷🇸
Српски
🇸🇮
Slovenščina
🇪🇸
Español
🇺🇦
Українська
🇹🇷
Türkçe
Zyro 网站安装
Zyro 浮动点赞
Add Live Commenting to Zyro Sites
第1步:添加代码小部件 
首先,在网站构建器中打开你的网站。
Now if you don't already have a section where you want the comments to go, add a blank section:
添加部分
添加部分
Now add the Zyro Embed widget by clicking our new section and clicking Add element in the top and then Embed code:
嵌入代码
You'll get something like this:
已添加代码部分
Now we're ready for Step 2.
第2步:添加代码 
现在让我们添加小部件代码。
复制下面的代码。请确保您已登录到 fastcomments.com 如果没有,请重新加载此页面,以便代码中预填充您的帐户信息,否则将显示演示代码。
现在复制代码:
Zyro 评论代码
Copy 

1
2<script src="https://cdn.fastcomments.com/js/embed-v2.min.js"></script>
3<div id="fastcomments-widget"></div>
4<script>
5 FastCommentsUI(document.getElementById('fastcomments-widget'), {
6 tenantId: "demo",
7 pageTitle: window.parent.document.title,
8 urlId: window.parent.location.href,
9 url: window.parent.location.href
10 });
11</script>
12
现在回到我们的网站构建器并点击 Enter code:
输入代码
注意!
重要的是使用上面的代码,而不是其他文档中的代码片段,因为此代码段是专为 Zyro 定制的。
您现在应该看到类似下图的内容,显示为空白。这是预期的。将鼠标移动到小部件应出现的区域:
代码小部件已添加
现在拖动小部件以调整到所需大小,您将看到它出现:
调整大小
...and now preview and save!
站点域名错误 
您可能会遇到如下授权错误:
域配置缺失
这是因为 FastComments 不知道应该允许您的帐户在此域名上使用。
在这种情况下,解决方法很简单。您只需将站点添加到您的 FastComments.com 帐户。
现在,您的站点应该已经添加了快速、实时的评论功能!
浮动点赞按钮 
FastComments 还支持 Zyro 的 Page Reacts(也称为浮动喜欢按钮)小部件。
你可以在本页的右下角看到它的效果!
- 首先,获取代码:
Zyro 浮动喜欢按钮 代码
Copy 

1
2<script src="https://cdn.fastcomments.com/js/embed-page-likes-floating.min.js?v=2" async></script>
3<div id="fastcomments-page-likes-floating"></div>
4<script>
5 (function () {
6 function tryLoad() {
7 if (typeof window.FastCommentsEmbedPageLikesFloating === 'function') {
8 window.FastCommentsEmbedPageLikesFloating(document.getElementById('fastcomments-page-likes-floating'), {
9 tenantId: "demo"
10 });
11 } else {
12 setTimeout(tryLoad, 50);
13 }
14 }
15
16 tryLoad();
17 })();
18</script>
19
- 然后,在 Zyro 中打开站点构建器。
- 转到左下角的“网站设置”。
- 选择“集成”。
- 将新代码添加到
Custom code字段的 末尾,并发布您的站点。 - 在预览模式下你看不到该小部件,但在发布后的站点版本中它会出现。