WordPress.org

Ready to get started?Download WordPress

Forums

Getting Rid of Comments in Pages (2 posts)

  1. DreamCrusher
    Member
    Posted 9 years ago #

    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:
    http://bouncy-bubbles.net/wpthemes/...theme=grayscale

  2. Amulet
    Member
    Posted 9 years ago #

    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).

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags