WordPress.org

Ready to get started?Download WordPress

Forums

How to remove "leave a reply" from a page (7 posts)

  1. rtenbush
    Member
    Posted 3 years ago #

    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.

  2. phe.le
    Member
    Posted 3 years ago #

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

  3. amansker
    Member
    Posted 3 years ago #

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

  4. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    you should be able to find

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

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

  5. amansker
    Member
    Posted 3 years ago #

    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.

  6. amansker
    Member
    Posted 3 years ago #

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

  7. amansker
    Member
    Posted 3 years ago #

    Wahoo! That did it. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags