Forums

Is there a way to completely remove the "Comments" part of a page? (5 posts)

  1. yeve
    Member
    Posted 2 years ago #

    Title: Is there a way to completely remove the "Comments" part of a page?

    It does not look very impressive with "POSTED BY x AT 10:35 PM" on a page called "About" or "Portfolio" for an example which I want to be static.

    Thanks in advance.

  2. flamenco
    Member
    Posted 2 years ago #

    Yes,
    You can edit a page, and near the bottom uncheck "allow comments", and save.

    You can also delete any comments. Finally, under Settings/Discussion you can set up other aspects of commenting.

  3. That may not do it, depending on the theme. @yeve should edit their theme files, such as page.php and single.php and completely remove the comments template link that will look something like this:

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

    Make a copy of theme files beforehand. Either remove the link or enclose it in <!-- and --> tags to comment it out, like this:

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

  4. yeve
    Member
    Posted 2 years ago #

    @flamenco, that's not what I'm after.

    @songdogtech, thanks. But that will remove the comments on all pages yes?

  5. MAS
    Member
    Posted 2 years ago #

    @songdogtech, thanks. But that will remove the comments on all pages yes?

    Yes. Comments will be removed from all pages.

    C
    Marketing Ads & Seo

Topic Closed

This topic has been closed to new replies.

About this Topic