• I have a few questions about running WP with comments off.

    I believe I’ve turned comments off through the administrative functions, but I’m still seeing the ‘Comments’ link on the page as well as a ‘0’ for the number of posts. I also see ‘Comment on’ pop up when I float my mouse over the comments link.

    1) Even though (I think) I have comments off, am I still seeing the ‘Comments’ link because that is also the permalink for that post?

    2) If the Comments link is the post’s permalink, can I edit the text for the ‘Comments’ link so that it simply says ‘Link’?

    3) How do I turn off the ‘0’ for number of comments, so that doesn’t show up on the page?

    Thanks,

    Mark

Viewing 3 replies - 1 through 3 (of 3 total)
  • 1) No, because it is in your theme. You can edit your theme files and remove reference to comments there as well.

    2) see above.

    3) see above 🙂

    Thread Starter WTF

    (@wtf)

    Okay, the comments are coming from my theme….

    Good to know. Are there some general truths about where such comments might be hiding, say, in your generic theme?

    Are there specific calls being made I might track down?

    Thanks.

    Using the default theme as an example. Look in index.php and find:
    <p class="postmetadata">Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>

    Kill it.

    In single.php, find this line:
    and is filed under <?php the_category(', ') ?>.
    Delete under it until this line:
    <?php } edit_post_link('Edit this entry.','',''); ?>

    (you may need to remove that } in that last line though)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Turning comments off’ is closed to new replies.