Forums

[resolved] How to switch comments off on a page (6 posts)

  1. WhitePhantom
    Member
    Posted 2 years ago #

    Hi,

    I'm learning WP to use it for a 'static' website (rather than a blog) and I don't want the option to leave comments on every page. How / where do I switch off the functionality to comment?

    Thanks,
    J.

  2. wp-rory
    Member
    Posted 2 years ago #

    You can turn off comment functionality by going to Settings > Discussion in the Dashboard area and un-ticking the 'Allow people to post comments on new articles' box (third one down). You may also want to un-tick the two boxes above it.

    You may now be left with some messages around your site saying 'Comments are turned off' or similar. You will probably want to remove these from your theme's files.

    All the best,

    Rory. :)

  3. WhitePhantom
    Member
    Posted 2 years ago #

    Thanks Rory, I did that, then created a new page and it doesn't have the comments section, but the existing pages still have it.

    How do I remove it from existing pages?

    Many thanks!

  4. wp-rory
    Member
    Posted 2 years ago #

    That's OK - just go to edit each page and scroll down below the text area - you will see towards the bottom two boxes under the heading Discussion - 'allow comments' and 'allow pings'. You will need to un-tick both of these for every page and post, as these were created when your site was still set up to allow comments. Once this is done, however, you won't need to worry about it anymore because you have now disallowed comments globally for your site throught the Settings > Discussion area.

    All the best,

    Rory. :)

  5. S.K
    Member
    Posted 2 years ago #

    Additionally you can remove calls to comments template from the page.php file of the theme used. Look for the line <?php comments_template(); ?> and remove it. Some themes try to display the comments number too seperately.

    S.K

  6. WhitePhantom
    Member
    Posted 2 years ago #

    Many thanks guys, got that sorted.

    I'm beginning to enjoy WP... I'm looking forward to loving it!

    :-)

Topic Closed

This topic has been closed to new replies.

About this Topic