look through all template files of your theme, and remove any reference to ‘comments_popup_link()’ and ‘comments_template()’
make backup copies before editing.
Maybe it will help:
Edit single.php in your theme folder.
Delete all the functions about “comment”.
For me, it looks like
<div id="comments">
<?php
comments_template();
?>
</div><!--#comments-->
<div class="pagination-single">
<span class="previous"><?php previous_post_link() ?></span>
<span class="next"><?php next_post_link() ?></span>
</div>
</div><!--#content-->
Maybe there’s some differences between our themes.
Just delete all of them.
Notice:
Make your backup before you do it.
Thread Starter
Caspar
(@iranicum)
@enzoklee
thank you for your advice. but when i changed the single.php as you told me, it blocked the post, which means that if you clicked on a post there was an error message. secondly, it did not changed anything: the Comment display was still visible.
Any other idea?
@alchymyth
thanks for your support as well. but that sounds difficult to me. i am a bloody greenhorn 🙂
BTW: What happens if i delete the comments.php fully? Would that disable at least the comment display? Actually i do not need a comment line at all. So if i can achieve what i want by fully deleting the comments.php, please tell me!
best regards
What happens if i delete the comments.php fully?
nothing – as far as i know, the software will use the comments.php from the default theme.
nothing – as far as i know, the software will use the comments.php from the default theme.
Not anymore. As of 3.0, this functionality was removed.
A call to comments_template() now requires “comments.php” to exist in the Theme. (Ditto for get_header(), get_footer(), and get_sidebar().)
Could you show me the single.php?
Maybe I can think about it for a while.
gee – i must be getting old.
thanks, Chip, for bringing me up-to-date 😉
@alchymyth: no worries. 🙂 I don’t know that 3.0 dropping “legacy” support was widely publicized. I was only really aware of it because we had to account for it for Theme Reviews.