WordPress.org

Ready to get started?Download WordPress

Forums

How to disable COMMENTS ? (6 posts)

  1. itssami
    Member
    Posted 8 years ago #

    can some one help me in removing the option of COMMENTS ( i dont mean , disabling it..I mean that when i write something, no one should see the option or have any permission to comment on it.Please help me about it.
    Thanks

  2. Mark (podz)
    Support Maven
    Posted 8 years ago #

    At all ? Forever ?

    Delete
    <?php comments_template(); ?>
    from index.php
    Delete the file wp-comments.php and wp-commentspopup.php (if you have it)
    In Options, check the box about people being allowed to comment.

  3. itssami
    Member
    Posted 8 years ago #

    Hey..
    My index.php file contains only the following text :

    <?php
    /* Short and sweet */
    define('WP_USE_THEMES', true);
    require('./wp-blog-header.php');
    ?>

    What about it now?

  4. Chris_K
    Member
    Posted 8 years ago #

    Check the index.php in your theme's directory instead.

    (/blog/wp-content/themes/yourThemeName/)

  5. itssami
    Member
    Posted 8 years ago #

    Well , and it works , (i.e. user cant comment ) but still, when i write some post, then it shows " Comments (0)"
    Is there anyway that i could remove this also ?

  6. Chris_K
    Member
    Posted 8 years ago #

    Look again, at your theme's index.php page. Towards the end of the loop, you'll see some code related to comments. You might wish to remove it (make a backup of the file first!) or comment that out.

    Similarily, you'll probably need to do similar in page.php.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags