• I am new to wordpress. I read all of the posts and nothing works. I am using the pink lillies template. I added the contact us form. Everything looks fine, except at the bottom of the form it says no comments yet, and the rss feed is…

    How can I remove the no comments and rss info from just the contact us form. If anyone knows how to do this can you give me as detailed of an explanation as possible, including the exact files that need to be altered. Thank you

Viewing 8 replies - 1 through 8 (of 8 total)
  • Go to Manage | Posts or Pages . Find the Post or Page you want to remove comments from and click “Edit”. At the top center where it says “Discussion”, uncheck the box that says “Allow Comments”. Click Save.

    Thread Starter sadie

    (@sadie)

    Thanks for the reply, but that does not answer my question. I have already done that. After the end of the contact us boxes, the page says the:

    No Comments
    No comments yet.
    RSS feed for comments on this post.
    Sorry, the comment form is closed at this time.

    On this one page I am trying to remove the above 4 lines. It is not part of the contact us form, it is generated by WordPress.

    How did you add the form? That will tell us which template file to change…

    A link to the page would help.

    If you’re using the contact form on a WP Page, and your template has a page.php file, replace the <?php comments_template(); ?> with this:

    <?php if(!is_page('page-slug')) { comments_template(); } ?>

    Where page-slug is the page slug for your contact form page.

    If you edit the Page or Post template, you won’t be changing things for just that page, you’ll be changing every page that uses that template.

    That’s what the conditional statement is for:
    if(!is_page('page-slug'))

    This tells it “if this is NOT this particular page-slug, display the comments template”.

    Or you could just create a custom template to use for a page and then not include that comment_template(); call in that template under your theme directory.

    Thread Starter sadie

    (@sadie)

    Techwrench:

    Thank you, your fix worked perfectly.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to remove comments from one page’ is closed to new replies.