Support » Fixing WordPress » Getting Rid of Comments in Pages

  • DreamCrusher


    How in the world do you get rid of this:

    No Comments
    No comments yet.
    RSS feed for comments on this post.
    Sorry, the comment form is closed at this time.

    I made Pages in WordPress that aren’t part of the blog (about, visitor, links sections) and I don’t want them to have that ‘no comments’ wording under the entries. I already clicked on the ‘dissable comments’ section but it gives me that. Is there a tag or something I can put into the comments.php page or any other page so it takes those words away?

    Btw, I’m using this template for my layout:…theme=grayscale

Viewing 1 replies (of 1 total)
  • Amulet


    I’m not an expert, but you might try getting rid of (or commenting out) lines in your theme’s page.php file (if you have one) that include the following:

    <?php comments_popup_link(__(' Comments?'), __('1 Comment'), __('% Comments')); ?>

    <?php comments_template(); // Get wp-comments.php template ?>

    If you don’t have a page.php file for your theme, you can either take those lines out of index.php, or create a page.php file that doesn’t include them (so you can still have comments for posts…although I think you can create a separate post.php file, too, if you want).

Viewing 1 replies (of 1 total)
  • The topic ‘Getting Rid of Comments in Pages’ is closed to new replies.