Remove ability to comment - Wordpress.

Discussion in 'WordPress' started by Kel, Apr 2, 2008.

  1. #1
    Hi!

    I want to use Wordpress as a CMS instead of a blog so I would like to be able to remove the comment box from all the pages.

    Does anyone have any idea how this could be done? :confused:

    Thanks for your help!
     
    Kel, Apr 2, 2008 IP
  2. hmansfield

    hmansfield Guest

    Messages:
    7,904
    Likes Received:
    298
    Best Answers:
    0
    Trophy Points:
    280
    #2
    When you make a new post, there is an option on the top right to allow comments...uncheck the box.
     
    hmansfield, Apr 2, 2008 IP
  3. Dondon2d

    Dondon2d Peon

    Messages:
    3,193
    Likes Received:
    146
    Best Answers:
    0
    Trophy Points:
    0
    #3
    In the administrator area, there is an option "Allow people to post comments on the article" under Options > Discussion.
     
    Dondon2d, Apr 2, 2008 IP
  4. NsaneNoob

    NsaneNoob Peon

    Messages:
    2,103
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    0
    #4
    As stated before. Also, if you want more privilages or due to security reasons, there are lots of plugins that are concerned with the comments visibility. I think I saw one like the youtube comments with Spam Rates and etc.
     
    NsaneNoob, Apr 2, 2008 IP
  5. godsofchaos

    godsofchaos Peon

    Messages:
    2,595
    Likes Received:
    124
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Yepp! Just untick anyone can comment and users must be logged in to comment under Discussion.

    Then the comment option dont turn up when writing a post.
     
    godsofchaos, Apr 2, 2008 IP
  6. Habitat

    Habitat Peon

    Messages:
    285
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #6
    You can take the comment code off the page
     
    Habitat, Apr 2, 2008 IP
  7. Kel

    Kel Well-Known Member

    Messages:
    1,612
    Likes Received:
    86
    Best Answers:
    0
    Trophy Points:
    185
    #7
    Thanks guys,

    I have done as advised and now all it shows is "Sorry, comments for this entry are closed at this time."

    I would love to be able to get rid of that too if anyone knows how :) I wont be needing comments on the site at all so is there a part of the code I can remove?
     
    Kel, Apr 2, 2008 IP
  8. Dondon2d

    Dondon2d Peon

    Messages:
    3,193
    Likes Received:
    146
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Dunno if you can remove it, but you can change the message to blank. Just look for this code in \wp-content\themes\themename\comments.php

     <?php else : // Comments are closed ?>
    <p><?php _e('Sorry, the comment form is closed at this time.'); ?></p>
    <?php endif; ?>
    PHP:
     
    Dondon2d, Apr 2, 2008 IP
    Kel likes this.
  9. Kel

    Kel Well-Known Member

    Messages:
    1,612
    Likes Received:
    86
    Best Answers:
    0
    Trophy Points:
    185
    #9
    Yep that will do! :D

    Thanks mate!
     
    Kel, Apr 2, 2008 IP
  10. Dondon2d

    Dondon2d Peon

    Messages:
    3,193
    Likes Received:
    146
    Best Answers:
    0
    Trophy Points:
    0
    #10
    No problem. Glad to have helped.
     
    Dondon2d, Apr 2, 2008 IP
  11. mizaks

    mizaks Well-Known Member

    Messages:
    2,066
    Likes Received:
    126
    Best Answers:
    0
    Trophy Points:
    135
    #11
    In your single.php you could also remove

    
    <?php comments_template(); ?>
    
    Code (markup):
     
    mizaks, Apr 3, 2008 IP