Remove Comments are Closed text from posts

I can't recall how many times I have been asked by numerous people how to remove the "Comments are Closed" text from the bottom of WordPress posts. So, I have decided to write a quick tutorial on the subject. The following tutorial explains how to remove the Comment option and Comments are Closed text from being made available on your posts.

The Process:
  1. First log into your WordPress admin panel and select Settings -> Discussion from the menu
  2. Uncheck the box that says: Allow people to post comments on the article then click the Save Changes button
  3. Select Design -> Theme Editor from the menu and open Single Post (single.php)
  4. Find the following code: <?php comments_template(); ?> and remove it.
  5. Find the following and remove it:
  6. <?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
    // Neither Comments, nor Pings are open ?>
    Both comments and pings are currently closed.

  7. Then click the update file button
  8. Select Manage -> Posts from the menu. Open the post you would like to remove comments from.
  9. Under the Comments and Pings Option, uncheck the Allow Comments box and then click the save button.
  10. Repeat steps 7 and 8 as necessary for all pages
That's it, now "Comments are Closed" text will not appear at the end of the post.
Post a Comment

Popular posts from this blog

Update WINDOWS 7 yang wajib dihindari

Panduan 5menit untuk mencari backlink berkualitas tinggi

Cara Pasang Meta Tag SEO Friendly dan Valid HTML5 pada Blogger