Removing comment form from all pages... (2 posts)

  1. antonym
    Posted 7 years ago #

    Hey there:

    My question is fairly simple, I believe, but I wanted to get some professional advice rather than just start knocking around in the code and breaking stuff.

    I want commenting to be enabled for posts, but totally disabled for all pages--I know that you can do this through the admin interface, but I want to totally remove the comment interface from every page on my site (so that I don't have to look at the "No comments yet. Sorry, the comment form is closed at this time." message constantly). What I want to know is whether there's some sort of base "pages.php" file (or something) that I can edit in order to accomplish this.

    Thanks in advance.

  2. moshu
    Posted 7 years ago #

    Template_Hierarchy should be helpful.
    (hint: page.php for Pages)

Topic Closed

This topic has been closed to new replies.

About this Topic