WordPress.org

Ready to get started?Download WordPress

Forums

Tiny Forge
[resolved] Remove comments on pages (4 posts)

  1. cflam
    Member
    Posted 6 months ago #

    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!

  2. Tomas Mackevicius
    Member
    Theme Author

    Posted 6 months ago #

    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 ); ?>

  3. nicolesage
    Member
    Posted 3 months ago #

    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!

  4. Tomas Mackevicius
    Member
    Theme Author

    Posted 3 months ago #

    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.

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.