Support » Fixing WordPress » how can I make the whole comments dissapear

  • Resolved ioannicut


    hello Dear community,

    I want the following section:

    No Comments

    No comments yet.

    RSS feed for comments on this post. TrackBack URL

    Sorry, the comment form is closed at this time.

    NOT to show up, except into the BLOG section.

    the site I am talking about is

    thank you for your help in advance,


Viewing 3 replies - 1 through 3 (of 3 total)
  • NOT to show up, except into the BLOG section.

    Quick and simple version.

    1) Backup the theme files.

    2) Open the theme’s folder and find single.php, page.php, and any other custom page templates that exist, and locate this;

    <p class="postmetadata"><?php the_tags('Tags: ', ', ', ''); ?> Posted in <?php the_category(', ') ?> |  <!-- by <?php the_author() ?> | --><?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>
    <?php comments_template(); // Get wp-comments.php template ?>

    Start by removing this:

    <?php comments_popup_link(‘No Comments »’, ‘1 Comment »’, ‘% Comments »’); ?>

    and this;

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

    If it is not exactly what you want, restore the files and adjust the deletions to your needs. Other methods exist, and they might be worth searching out before deciding what to do.

    [Edit] I urge you, do not do this without having a backup of the files you change. Mistakes and bad ideas can always be fixed in just seconds with backup files. Best wishes.


    YOU Rock, Brother! you are fantastic!

    I did back up the files before (with filezilla) and then modified page.php. I got exactly what I expected.

    thank you for being precise and making a difference into my life, so I could further make a difference into some other people lives!

    sincerely yours,


    You are very welcome. I’m glad it worked the way you wanted it to.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘how can I make the whole comments dissapear’ is closed to new replies.