WordPress.org

Ready to get started?Download WordPress

Forums

How to get rid of Reply/Comment Area above footer? (13 posts)

  1. kenshil37
    Member
    Posted 3 years ago #

    How do I get rid of the following on my pages:

    "Leave a Reply"
    "Comment"
    "Post Comment"

    which would be the area above the footer on each page. Thank you, Ken

  2. adamtinsley
    Member
    Posted 3 years ago #

    If you want to totally get rid of the comments form on your site then delete this line of code from your page.php and single.php files:

    <?php comments_template(); ?>

  3. kmessinger
    Volunteer Moderator
    Posted 3 years ago #

    For pages go to settings, discussion, and uncheck allow people to comment on new articles - articles=pages so it is confusing.

    For those already published you can go to pages, edit and turn comments off.

  4. kenshil37
    Member
    Posted 3 years ago #

    Went to edit page.php and single.php files and this code was not there. There is almost no code present when I go to edit these files. Note mentions some type of copywrite. Would really appreciate finding out how to proceed. Thank you.

  5. adamtinsley
    Member
    Posted 3 years ago #

    What is the link to your web site?

  6. kenshil37
    Member
    Posted 3 years ago #

    Not too much on my website yet, as I am just learning how to use the software. What I have so far is at:

    http://www.catskillmountaincontracting.com/test/

    Thank you.

  7. adamtinsley
    Member
    Posted 3 years ago #

    When I ran one of your pages through the w3c validator this is the source code that I see http://pastebin.com/vkCUhAgA

    This code is probably in your comments.php file but it's being output by a function in your page file. Look for something like <?php comment_form(); ?> Note: there may be $args between the parenthesis. It's hard without seeing the actual code in your theme but this is how most themes are set up.

  8. kmessinger
    Volunteer Moderator
    Posted 3 years ago #

    For pages go to settings, discussion, and uncheck allow people to comment on new articles - articles=pages so it is confusing.

    For those already published you can go to pages, edit and turn comments off.

    It is always better to use the built in features of wordpress, if they will work for you, than to alter code. Other wise, the next time you update wp or your theme you will stand to loose any changes you have made.

  9. kenshil37
    Member
    Posted 3 years ago #

    Your suggestion does not accomplish my objective. Perhaps you do not understand my question. I would like to get rid of the entire section that includes "leave a reply," "comment," and "post comment." Is this a widget? Can it be removed? Is this considered the "morefoot" section of the page? Thank you

  10. kmessinger
    Volunteer Moderator
    Posted 3 years ago #

    What theme are you using? I ask because what I suggested above will most definitely remove the

    entire section that includes "leave a reply," "comment," and "post comment."
    This was included in wp just because many people don't want comments on pages or on posts. If this is not working for you then you have either a problem with your theme or with the dashboard.

    http://codex.wordpress.org/FAQ_Working_with_WordPress#How_do_I_disable_comments.3F

    The codex is correct but in addition, you can bulk edit past posts to delete comments.

  11. kenshil37
    Member
    Posted 3 years ago #

    km: Your second suggestion worked. Thank you

  12. kdlaw
    Member
    Posted 3 years ago #


  13. kdlaw
    Member
    Posted 3 years ago #


Topic Closed

This topic has been closed to new replies.

About this Topic