WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Is there a way to remove the option to leave comments on pages? (3 posts)

  1. DrCuneo
    Member
    Posted 1 year ago #

    I am in the process of converting my existing html site to WordPress. I installed the Twenty Twelve theme. I'm wondering if there's a way to remove the option to leave comments on static pages. Comments on posts are okay, but I don't want them on the Pages. Thanks in advance for any help.

  2. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    start by creating a child theme of Twenty Twelve for the customisations;
    http://codex.wordpress.org/Child_Themes

    radical solution:
    save a copy of page.php in the child theme, and remove this line:

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

    or without coding, from within:

    dashboard - pages - all pages: click quick edit below the page titles, then untick 'allow comments'

  3. DrCuneo
    Member
    Posted 1 year ago #

    Thank you so much! I was hoping it would be an easy fix like this!

Topic Closed

This topic has been closed to new replies.

About this Topic