Viewing 4 replies - 1 through 4 (of 4 total)
  • Try removing the line
    <?php comments_template(); ?>
    from your single.php

    You can disable comments in Pages and Posts in the editor. Edit the page, and find the ?Discussion?-section somewhere near the bottom. Disable * Allow comments on this post and * Allow trackbacks and pingbacks on this post

    Ah, much better option from stiand.

    (Other themes might leave something like “Comments are closed.”, then my suggestion would get rid of everything related to comments.)

    Getting rid of everything related to comments is no good if you want comments on some pages/posts, but not on others. My suggestion would be to modify the template-files (usually single.php and/or page.php) and replace

    <?php comments_template(); ?>

    with

    <?php if(comments_open()) comments_template(); ?>

    Then the comments template-file will only be loaded if comments are allowed on the post/page, but not otherwise. Then you don’t get the ?Comments are closed?-message.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Removing commet pain on homepage?’ is closed to new replies.