WordPress.org

Support

Support » How-To and Troubleshooting » How to remove "leave a reply" from a page

How to remove "leave a reply" from a page

  • I use the static front page as my landing page and then I have a page called buy Now that is just a link to my etsy page. I do not want the leave a reply on that page. Can it be removed? I do not have it on my Contact page but do not remember what I did different.

    Thanks for the help in advance.

Viewing 6 replies - 1 through 6 (of 6 total)
  • phe.le
    Participant

    @phele

    Just simply remove <?php comments_template(); ?> in the template file.

    I’m using template twentyten. Found <?php comments_template(); ?> in loop-attachment.php only. Removed, but The comment section remains. Help!

    Michael
    Forum Moderator

    @alchymyth

    you should be able to find

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

    in loop-page.php as well (second last line)

    The second to last line is: <?php comments_template(); ?> and that is the one I deleted. I don’t see any other occurrences of the word comments in that file.

    oh, my mistake, i see you are referring to a different page – I’ll check.

    Wahoo! That did it. Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to remove "leave a reply" from a page’ is closed to new replies.