我已经阅读了这个页面上的帖子:Remove Wordpress "Comments are closed" message from posts without comments, possible?
即。如果没有评论或评论未启用,我不希望“评论已关闭...”等出现。
我使用主题Headway,v2.0.13。有人能解释一下我是怎么做到的吗?我假设我修改了comments.php中的代码,但需要确切的指令来说明需要删除、修改或添加什么。谢谢
发布于 2013-01-13 20:04:35
我没有看到comments.php模板文件,但这是从另一个模板文件中提取的。
<?php else : // comments are closed ?>
<!-- If comments are closed. -->
<p class="nocomments">Comments are closed.</p>
<?php endif; ?>只需移除此部件
<p class="nocomments">Comments are closed.</p>我猜测它在comments.php中的第50行左右。
发布于 2016-08-12 22:21:23
我建议你使用Hide Comments are Closed插件。没有此插件的设置。只需安装和文本将自动隐藏。
https://stackoverflow.com/questions/14302913
复制相似问题