Disqus 发音为“discuss”,是 WordPress 流行的第三方评论系统。如果您浏览网络已经超过一周,那么您可能已经遇到过一个使用 Disqus 的网站。许多热门网站,包括 CNN、The Next Web、Bloomberg、CNBC、The Atlantic 以及现在的 WPBeginner 都在使用 Disqus。在本文中,我们将向您展示如何在 WordPress 中添加 Disqus 评论系统。我们还将讨论改用 Disqus 的原因。
Disqus,发音为“discuss”,是 WordPress 流行的第三方评论系统。如果您浏览网页已经超过一周,您可能已经浏览过使用 Disqus 的网站。许多热门网站(包括 CNN、The Next Web、Bloomberg、CNBC、The Atlantic 和现在的 WPBeginner)都使用 Disqus。在本文中,我们将向您展示如何在 WordPress 中添加 Disqus 评论系统。我们还将讨论改用 Disqus 的原因。
更新: We no longer use Disqus on our site. Here are the reasons 为什么我们不再使用 Disqus.
更新:我们不再在我们的网站上使用Disqus。 这就是为什么我们放弃使用 Disqus的原因。
影片教学 (Video Tutorial)
如果您不喜欢该视频或需要更多说明,请继续阅读。
如果您不喜欢该视频或需要更多说明,请继续阅读。
在WordPress中添加Disqus评论系统 (Adding Disqus Commenting System in WordPress)
Adding Disqus commenting system to WordPress is very easy. First thing you need to do is go to 讨论 website and login or signup for a new account. Once you are logged in, click on 对于网站 link next to the Disqus logo.
向WordPress添加Disqus评论系统非常简单。 您需要做的第一件事是访问讨论网站并登录或注册一个新帐户。 登录后,单击Disqus徽标旁边的“ 对于网站”链接。

On the next screen, you need to click on 将 Disqus 添加到您的网站 button next to your profile pic on the top right corner of the screen.
在下一个屏幕上,您需要单击屏幕右上角您的个人资料图片旁边的“向您的站点添加Disqus” 。
This will take you to a signup form where you need to provide your website information. Provide the title of your blog or website and then choose a unique URL for your website on the disqus commenting system. This unique URL will be the place where you can access all your comments after you have installed Disqus on your site. Lastly choose a category for your website. Once you are done, hit the 完成注册 button.
这将带您到一个注册表单,您需要在其中提供您的网站信息。 提供博客或网站的标题,然后在Disqus评论系统上为您的网站选择唯一的URL。 在站点上安装Disqus后,可以使用该唯一的URL访问所有注释。 最后,为您的网站选择一个类别。 完成后,点击“ 完成注册”按钮。

注册后,系统会要求您选择平台。您需要单击 WordPress,它将显示在您的 WordPress 网站上设置 Disqus 评论系统的进一步说明。不用担心,我们将引导您完成这些说明。
注册后,系统会要求您选择一个平台。您需要单击 WordPress,它将显示在您的 WordPress 网站上设置 Disqus 评论系统的进一步说明。别担心,我们将引导您完成这些说明。
Now that you have registered your site for Disqus commenting system, it is time to connect your WordPress site to the Disqus platform. To do this, you need to install and activate the Disqus评论系统 plugin. Upon activation, go to 评论 » 设置 and sign in with your Disqus account.
现在,您已经为Disqus评论系统注册了站点,是时候将WordPress网站连接到Disqus平台了。 为此,您需要安装并激活Disqus评论系统插件。 激活后,转到注释 » 设置,然后使用您的Disqus帐户登录。

登录后,您将看到您注册 Disqus 评论系统的网站。选择站点并单击下一步按钮完成设置。
登录后,将显示您在 Disqus 评论系统注册的站点。选择站点并单击“下一步”按钮完成设置。

就这样。您已成功将 Disqus 评论系统添加到您的网站。您可以通过访问您网站上的任何帖子来查看它的运行情况,并且您将在您的网站上看到 Disqus 评论而不是 WordPress 评论。
就这样。您已成功将 Disqus 评论系统添加到您的网站。您可以通过访问网站上的任何帖子来查看它的运行情况,并且您将在网站上看到 Disqus 评论,而不是 WordPress 评论。
将旧的WordPress评论导出到Disqus (Exporting Older WordPress Comments into Disqus)
Since Disqus commenting system takes over the display of comments on your WordPress site, this means that the comments stored on your WordPress site will not be visible to users. To fix this, you will have to export those comments to Disqus commenting system. In WordPress admin area, go to 评论 » 讨论 and click on the plugin settings tab on the top right corner of the screen.
由于Disqus评论系统将接管WordPress网站上的评论显示,因此这意味着用户看不到存储在WordPress网站上的评论。 要解决此问题,您必须将这些评论导出到Disqus评论系统。 在WordPress管理区域中,转到评论 » 讨论 ,然后单击屏幕右上角的插件设置标签。

On the plugin’s settings page, scroll down to 进出口 section and click on 导出评论 button. This will initiate the import process and all your old WordPress comments will be exported to Disqus commenting system.
在插件的设置页面上,向下滚动到“ 进出口”部分,然后单击“ 导出评论”按钮。 这将启动导入过程,您所有的旧WordPress注释都将导出到Disqus评论系统。

审核Disqus评论 (Moderating Disqus Comments)
You can moderate Disqus comments by visiting 评论 » 讨论. There you will find a button linking to your comment administration page on Disqus. This is where you can approve, spam, or delete comments.
您可以通过访问评论 » 讨论评论来审核Disqus评论。 在那里,您将找到一个链接到Disqus上您的评论管理页面的按钮。 您可以在此处批准,发送垃圾邮件或删除评论。

对Disqus评论显示问题进行故障排除 (Troubleshooting Disqus Comment Display Issue)
On some WordPress themes Disqus comment area may appear wider than rest of the post and page area. To fix this, you need to figure out the width of the content area in your theme and then add this CSS into your theme or 儿童主题‘s stylesheet.
在某些WordPress主题上,Disqus注释区域可能比其余的帖子和页面区域宽。 要解决此问题,您需要弄清楚主题中内容区域的宽度,然后将此CSS添加到主题或副主题的样式表中。
#disqus_thread {
margin: 0 auto;
max-width: 604px;
}
此 CSS 将评论区域的最大宽度设置为 604px 并将其居中于屏幕。您的主题可能有不同的宽度,因此您必须相应地调整它以满足您的需求。
此 CSS 将评论区域的最大宽度设置为 604px 并将其置于屏幕中央。您的主题可能有不同的宽度,因此您必须相应地调整它以满足您的需求。
We hope this article helped you add Disqus comment system in WordPress. If you liked this article, then subscribe to our YouTube 频道 for WordPress video tutorials or join us on 推特 and 谷歌+.
我们希望本文能帮助您在WordPress中添加Disqus评论系统。 如果您喜欢这篇文章,请订阅我们的YouTube 频道的WordPress视频教程,或通过推特和谷歌+加入我们。
翻译自: https://www.wpbeginner.com/plugins/how-to-add-disqus-comment-system-in-wordpress/