WordPress.org

Ready to get started?Download WordPress

Forums

Delete comments.php?? (3 posts)

  1. indopulsa
    Member
    Posted 2 years ago #

    Can anyone help me? I just finished making a blog using magazine basic theme. I want my blog appear as a website. In this case, may I delete comments.php? Whether by removing comments.php will affect seo? or there may be other options? sorry, I am a newcomer. I do not understand much about the weblog. thanks

  2. Matthew Gedeon
    Member
    Posted 2 years ago #

    That would be the hard way to do it. What you want is pretty common, so WordPress built it in. What you need to do is go to the settings area and click on "discussion". Now uncheck the third option which should be "Allow people to post comments on new articles".
    This gets you half way there. New posts won't have a comment section, but you will still need to tell the older posts and pages to not allow comments. To do this, go to the posts page, and click the checkmark for all the posts. (the one at the top selects all of them at once instead of you having to check each one.) Then, go up to the box at top and select "edit" then you have to click the "apply" button just an inch to the right. This will open up a box which all kinds of things you can do to the selected posts en mass. Just uncheck the "allow comments" box and update on the bottom right and you're all set. If you don't want pages to have comments either, go the pages list and do the same thing. Have fun!

  3. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    if disabling and un-allowing the comments using the dashboard options does not work efficiently enough, deleting comments.php will not help much as there is still the default fallback in /wp-inlcudes/theme-compat/comments.php which will be used instead.

    rather try to locate and delete all 'comments_template()' codes from your themes templates; plus possibly any other references to any functions which have the name 'comment' in them, such as 'comments_popup_link()' etc.

Topic Closed

This topic has been closed to new replies.

About this Topic