HOw to disable commenting?

Discussion in 'WordPress' started by rookiethomas, Nov 30, 2009.

  1. #1
    Im trying to use Wordpress to build a website out of pages. Is there a way to disable comments so they do not even show? Or do I need to edit the php file in the theme editor? If so which file?
     
    rookiethomas, Nov 30, 2009 IP
  2. chandan123

    chandan123 Prominent Member

    Messages:
    11,586
    Likes Received:
    578
    Best Answers:
    0
    Trophy Points:
    360
    #2
    while posting the blog post u can choose comment closed ( a checkbox )
     
    chandan123, Nov 30, 2009 IP
  3. rogan4567

    rogan4567 Active Member

    Messages:
    103
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    55
    #3
    It could vary depending on the template, but if you want to completely remove the comments area for all posts, you'll have to edit the single.php and maybe the page.php (if your theme shows the comment box on pages). However, it could also be located in the index.php file or the footer.php file as well.

    In those files (check the single.php first), look for the:

    
    	<?php comments_template(); ?>
    
    Code (markup):
    thing and delete that. However, as I'm not proficient in php, and I've never actually done this personally, it may not work as intended. But, regardless of whether it works or not, make a backup of your file before editing it. It doesn't have to be a proper backup, either -- just open a text document, copy and paste the file's contents into the new blank document, and then make your changes, save it, and test it. If it breaks something or doesn't work as intended, you'll still have the code that works so you can try something else.
     
    rogan4567, Dec 3, 2009 IP
  4. Dean_Saliba

    Dean_Saliba Notable Member

    Messages:
    1,212
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    225
    #4
    When you are adding a new post, or a new page, there is an option to disable pings and comments (look down the page a bit), unticking the box will turn off the comments. :)
     
    Dean_Saliba, Dec 3, 2009 IP
  5. version2

    version2 Peon

    Messages:
    227
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    there is a way to disabled them all in the code, my blog they are all turned off due to spam. my webmaster did it.

    a simple google search should find out how to do it.
     
    version2, Dec 3, 2009 IP
  6. miche11e

    miche11e Active Member

    Messages:
    154
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    78
    #6
    Keep in mind that commenting does help with search engine optimization because they help add content to the site keeping your content fresh and interactive.
     
    miche11e, Dec 3, 2009 IP
  7. version2

    version2 Peon

    Messages:
    227
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Good point miche11e plus it also means when you comment on other blogs they are more likely to approve it, if they can comment back.

    Sadly I had to disable mine as spam bots were attacking like mad, and over powering my server!

    I hate spam bots
     
    version2, Dec 4, 2009 IP
  8. rookiethomas

    rookiethomas Peon

    Messages:
    48
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Well I will be building a static website so I definately do NOT want the cooment box on the page.
     
    rookiethomas, Dec 5, 2009 IP
  9. taminder

    taminder Peon

    Messages:
    581
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #9
    at the bottom of the post layout:

    [​IMG]

    uncheck "Allow Comments"
     
    taminder, Dec 5, 2009 IP