WordPress.org

Ready to get started?Download WordPress

Forums

Complete removal of comments box (8 posts)

  1. howard0178
    Member
    Posted 3 years ago #

    I need to completely remove the Comment box from my Posta.
    Anyone know how?

  2. kmessinger
    Volunteer Moderator
    Posted 3 years ago #

    Dashboard/settings/discussion/ make sure allow people to post comments on new articles is not checked.

    [Edit] You could also edit comments.php <p class="nocomments">Comments are closed.</p> just taking out the phrase and nothing would show up. Of course, this would be overwritten with any upgrade.

  3. howard0178
    Member
    Posted 3 years ago #

    OK thanks, I appreciate your response.
    Only thing is, I am really really new at this, and I don't know where I would go to make the changes you advised.
    Can you help me out with a step-by-step on this operation?

  4. howard0178
    Member
    Posted 3 years ago #

    The edit part of the .php file I mean

  5. kmessinger
    Volunteer Moderator
    Posted 3 years ago #

    Find this line in wp-admin/comments.php, <p class="nocomments">Comments are closed.</p> and delte the words Comments are closed. You will have left a line of code that reads, <p class="nocomments"></p>

    You can do this by editing the file in ftp or by signing into your hosted account. This file however, will be written over when you upgrade so you need to keep track of your change. If something goes wrong, you take a new copy of the file from wp 3.1.3 and replace it.

    It would be much better to make this change with css. I think it is possible but I don't know how to do it. You might want to enquire about that possibility. That way, you could use a child theme and your changes would not be overwritten.

  6. howard0178
    Member
    Posted 3 years ago #

    OK, Thanks
    Sounds a little onerous for a newbie like myself, but I'm willing to give it a try.Nothing like diving into the deep end.
    Thanks again for your trouble :)

  7. kmessinger
    Volunteer Moderator
    Posted 3 years ago #

  8. howard0178
    Member
    Posted 3 years ago #

    OK Thanks
    I'm a little embarrassed to ask, but how exactly do I access the "index.php" file"
    I have no idea where it's located

Topic Closed

This topic has been closed to new replies.

About this Topic