WordPress.org

Ready to get started?Download WordPress

Forums

Removing the comments box from the site entirely. (3 posts)

  1. handyand
    Member
    Posted 3 years ago #

    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!!

    Details:

    This is my theme: http://wordpress.org/extend/themes/intrepidity
    This is the site: http://handyandybuilders.com/?page_id=10

    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.

  2. phe.le
    Member
    Posted 3 years ago #

    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.

  3. handyand
    Member
    Posted 3 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic