Getting rid of comments

Support Area Forums Foundation Getting rid of comments

Viewing 8 posts - 1 through 8 (of 8 total)
URL to the page in question:
  • Author
    Posts
  • #4553
    Steven Fry
    Participant

    How can I turn my site into more of a CMS? I want to remove anything related to comments.

    #4554
    Bill Robbins
    Moderator

    You can delete the comment section from being visible on posts. Here’s how to do that.

    1. Go to the appearance section and select edit to open up the theme editor
    2. From the list of files on your right, choose single.php
    3. Look for this spot:

      <?php comments_template(); ?>

      and delete it.

    4. Save your changes.

    That should remove the comment form and list from your site. If you’d also like to take out the references to “Leave a Comment” that appear by the post date you can do that too. Here’s how.

    1. Edit the archive.php file
    2. Look for this spot:


      and delete it.

    3. Save your changes.

    That should remove the references to “Making a Comment” as well.

    Let me know if you need any help.

    #4569
    Steven Fry
    Participant

    Thanks Bill! I did what you said but the Leave a Comment still appears next to posts on the bottom of the home page. What next?

    #4572
    Bill Robbins
    Moderator

    Good catch. You can make the same edit to the home.php file to change that one too.

    #4574
    Steven Fry
    Participant

    Wow! That caused the site to crash. I will have to undo that.

    #4575
    Bill Robbins
    Moderator

    The part you want to delete is on line 38. What you’ll want left there is:

    #4576
    Steven Fry
    Participant

    Okay. Not sure why it went so bad the first few times but it works now. Thanks Bill!

    #4580
    Bill Robbins
    Moderator

    No problem. Glad it worked this time.

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Getting rid of comments’ is closed to new replies.