简体   繁体   English

我的wordpress.ORG主题破坏了评论功能

[英]My wordpress.ORG theme breaks comments functionality

I'm helping to develop a wordpress.ORG website (www.teloscares.org). 我正在帮助开发wordpress.ORG网站(www.teloscares.org)。 The site is using a custom theme that I didn't develop (for the record, I know very, very little about php or css) and for some reason the theme is breaking our ability to view or leave comments. 该网站使用的是我没有开发的自定义主题(出于记录,我对PHP或CSS知之甚少),并且由于某种原因,该主题破坏了我们查看或发表评论的能力。 IS there any advice on how I can track down what about the themes .php files is breaking it or where I can look it up? 关于如何追踪主题.php文件将其破坏还是在哪里可以找到任何建议? Please feel free to point me in the right direction if it's not a quick, easy fix somehow. 如果不是通过某种方式快速,轻松地解决问题,请随时向我指出正确的方向。 When I switch to the wordpress "2012" theme it works just fine, which is how I was able to determine that it was our theme. 当我切换到wordpress的“ 2012”主题时,效果很好,这就是我能够确定它是我们的主题的方式。 Any advice would be appreciated. 任何意见,将不胜感激。 Thank you. 谢谢。

First of all disable all your plugins, see if that fixes the problem? 首先禁用所有插件,看看是否可以解决问题? If not then the problem is indeed with your theme. 如果不是,那么问题确实出在您的主题上。 You can track down problems by enabling WP_DEBUG , you can do that in the wp-config.php file which you can find in the root of your WordPress installation directory. 您可以通过启用WP_DEBUG来跟踪问题,可以在wp-config.php文件中进行查找,该文件位于WordPress安装目录的根目录中。

Links from the very mighty codex: 来自非常强大的法典的链接:


EDIT 编辑

It appears that the OP's theme didn't have any comment functionality at all, so there wasn't anything wrong it just wasn't there. 看来OP的主题根本没有任何注释功能,所以没有错,只是没有。 You can add the comment functionality yourself using comments_template() 您可以使用comments_template()自己添加评论功能

More in the mighty codex: 强大的法典中的更多内容:

您可以使用Disqus —它的小部件基于JS,具有Wordpress集成,支持使用社交网络帐户登录并且运行良好

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM