WordPress.org

Support

Support » Themes and Templates » [Resolved] Remove comments on pages

[Resolved] Remove comments on pages

  • I’m almost done adapting my design to Tiny Forge and I really like it. However, is there a way to remove comments from pages? In particular, I have a static page for my homepage and I’d rather that the comments didn’t show up. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • If it is about several individual pages, just disable comments from the page edit screen (or quick edit). Also you can disable comments from the general WP settings > discussion, and the enable them on per post or per page basis.

    In order to disable comments for pages permanently, you would have to edit page.php file and delete (or comment out) this line:

    <?php comments_template( '', true ); ?>

    HI. I posted a similar question on another thread and then saw this one, sorry! I removed that code from both the page.php and the full-width.php (page using the full-width no side bars template) but the comments are still on my pages. Also tried disabling from wp settings > discussions and nothing. Any suggestions?

    thank you again!

    When you disable comments via WP settings it affects only future pages/posts, so just go and turn off comments for existing posts and pages manually and everything new will be without comments. I think that easiest way to deal with this task.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Remove comments on pages’ is closed to new replies.