此代码:
<?php comments_template( \'\', true ); ?>
输出:<h3 id="comments-title">
<h2>
12 Responses to My Post.
</h2>
</h3>
(comments template)
我不知道这个h2标签是从哪里来的。我想摆脱它。并自定义我的评论标题(因此将有h4而不是h3和“评论”而不是“回复”。如何实现这一点?此代码:
<?php comments_template( \'\', true ); ?>
输出:<h3 id="comments-title">
<h2>
12 Responses to My Post.
</h2>
</h3>
(comments template)
我不知道这个h2标签是从哪里来的。我想摆脱它。并自定义我的评论标题(因此将有h4而不是h3和“评论”而不是“回复”。如何实现这一点?注释标记-注释列表和注释回复表单都将位于comments.php
模板文件。
此文件的内容完全依赖于主题,因此任何更具体的帮助都需要comments.php
.
我的单曲。php和索引。php我在这段代码中加入了注释输入例程。。。<?php if(get_option(\'allow_comments_posts\')){comments_template();} ?> 但是,当具体帖子被单独查看时。php没有选中“允许评论”,我不希望出现评论模板。我的印象是comments\\u template()例程自动管理这个,但显然我需要包装它或传递参数?