PHP Magic Book – Free PHP Scripts, Tutorials and Downloads, PHP AtoZ Reloaded, free php tutorials, free php downloads, php scripts, PHP tips

Remove Comments Section From Your WordPress Blog

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
Tags: ,
Posted in: Hacks, WordPress
Post's RSS » RSS 2.0
Post's Comments RSS » RSS 2.0

Related Posts




6 Responses to “Remove Comments Section From Your WordPress Blog”

  1. Jul 23, 2009
    maskofZoro Says:

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

    Thanks a lot,

  2. Sep 29, 2009
    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.

  3. Sep 29, 2009
    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

  4. Sep 29, 2009
    King Says:

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

  5. Sep 30, 2009
    ownbig Says:

    Thank you very much for that great article.

  1. 1 Trackback(s)

  2. Nov 22, 2008: Wordpress UK » Remove Comments Section From Your WordPress Blog | PHP Magic Book …

Post a Comment

  Subscribe Via RSS
  Subscribe Via Email