WordPress.org

Support

Support » How-To and Troubleshooting » How to get rid of Reply/Comment Area above footer?

How to get rid of Reply/Comment Area above footer?

  • 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

Viewing 12 replies - 1 through 12 (of 12 total)
  • 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(); ?>

    Moderator kmessinger

    @kmessinger

    Forum Moderator

    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.

    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.

    What is the link to your web site?

    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.

    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.

    Moderator kmessinger

    @kmessinger

    Forum Moderator

    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.

    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

    Moderator kmessinger

    @kmessinger

    Forum Moderator

    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.

    km: Your second suggestion worked. Thank you

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘How to get rid of Reply/Comment Area above footer?’ is closed to new replies.