Comments are very important part of a blog. Some developers use WordPress as their primary CMS to build websites and sometimes client do not need comments section at all, because he needs a website and not a blog. Comments section can be removed from your blog in a very simple way.

Just edit your single.php file from your theme.

Find the following line:

<?php comments_template(); ?>

Delete it.

  • Share/Bookmark

,

6 Reviews

  1. [...] here to read the rest: Remove Comments Section From Your WordPress Blog | PHP Magic Book … This entry was posted on Saturday, November 22nd, 2008 and is filed under WordPress News. You [...]

  2. maskofZoro says:

    Is there a way to remove the comment section only in certain pages? I would much appreciate any help.

    Thanks a lot,

  3. King says:

    @maskofZoro: Yes. At every post or page there you will find in admin, an option, allow comments. Use that to allow or disallow comments at certain pages in WordPress.

  4. maskofZoro says:

    @King:
    I meant, is it possible to remove even that “comments not allowed” when you disallow comments, but only from certain pages.

    Thanks

  5. King says:

    @maskofZoro: Yes. Remove “comments not allowed” line from comments.php in blog theme file.

  6. ownbig says:

    Thank you very much for that great article.

Leave a Review

Incoming Searches

wordpress remove comments, remove comments wordpress, wordpress how to remove comments, how to remove comments from wordpress, remove comments from wordpress, word press how to remove comment, php remove comment, remove posted in wordpress, wordpress remove comment, remove comments on wordpress, php remove comments, removing the comment loop wordpress, removing comments in wordpress, wordpress delete comments feed, removing comments wordpress, removing comments from wordpress theme, removing comment loop from wordpress themes, removecomments wordpress, remove wordpress comments php, remove wordpress comments, remove wordpress comment loop, remove the comments from wordpress, word press removing posted in, wordpress add remove comments in php, wordpress remove subscribe section, wordpress remove Posted in Uncategorized | Comments, wordpress remove posted in, wordpress remove comments from page, wordpress remove comment section in post, wordpress remove comment reply, wordpress totally remove comments comments php, wordpress remove adverisement from specific page, wordpress posts remove comments php, wordpress hide Posted in, wordpress hide comments, wordpress disable comments on guestbook, wordpress disable admin sections, wordpress delete comments loop, wordpress remove posted by php, wordpress delete comment info, wordpress removing comments, remove rss feed with php, remove posted on wordpress, how to remove comments from wordpress theme, how to remove comment wordpress, How to remove comment section from wordpress, how to remove comment option in wordpress?, how to delete comments in wordpress, how to delete comments at once on your wordpress website, how do i remove the comment part in wordpress, hide comment section on wordpress for a specific page, enable comments wordpress guestbook, disable wordpress hide comments in admin, disable comments in wordpress, delete the posted by section on wordpress pages, delete comments from page php, delete comment wordpress, comments remove in wordpress, how to remove comments loop wordpress, how to remove comments on wordpress, remove posted in comments all posts wordpress, remove comments tag in wordpress, remove comments scripts wordpress, remove comments loop wordpress, remove comments in wordpress posts, REMOVE comments FROM WORDPRESS BLOG, remove comments from single php wordpress, remove comment loop wordpress, remove comment from wordpress, php remove comment line, php comment section, php comment remover, how to remove comments wordpress, how to remove comments option from wordpress, how to remove comments option from the wordpress blog, allow comments to all in the php script section