Support » Fixing WordPress » Removing the comments box from the site entirely.

  • Ive seen similar questions, but Im unsure if solutions are theme specific.

    Im very new to WP (been using it for just 2 days)
    I know _nothing_ about html code, so Id be grateful if any replies are spelled out simply with step by step instructions please!!


    This is my theme:
    This is the site:

    I want a static site with no comments at all and no visible comments box either.

    Ive disabled comments here: settings> discussion. I unchecked the first 3 boxes.

    Ive read several solutions which involve editing templates through Dashboard.

    Other users have said to remove this bit of code: <?php comments_template();?>

    But which template do I remove it from- Single.php? What about comments.php?

    Ive located <?php comments_template();?> in Single.php – What about the other coding around it? Is there anything else I should remove?

    Another solution I came across while googling was inserting this code: #comments {display:none; } but there was no explanation of where and how to place it.

    So Id be grateful for any help from WP users.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Quick solution:

    Go to Dashboard -> Appearance -> Editor -> style.css should be the default, if not, select it from the right side -> Find “#respond” -> Add “display: none;”. For example:
    #respond {
    background: url(“images/dash.png”) repeat-x scroll 0 0 transparent;
    margin-top: 10px;
    padding-top: 20px;
    display: none;

    Or remove <?php comments_template(); ?> in index.php, single.php, and page.php.

    Phe.Le- Thank you so much!

    I was so sure I would fatally mess things up and the site wouldnt load again!

    I had some trouble with the display: none; code, I dont think I placed it correctly.

    But removing <?php comments_template(); ?>worked beautifully.
    Thank you for taking the time to telling me exactly where to remove it from 🙂

    Im very thankful and happy!

    Now I have to correct the side bar!
    And create a static front page!

    Thanks again! Handyand

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Removing the comments box from the site entirely.’ is closed to new replies.