Removing "No Comments" (4 posts)

  1. sparkiecat
    Posted 7 years ago #

    I was wondering how to remove the "No Comments" link on my blog if there are no comments - but to show it if there are comments. Is this possible? If so, how is it done?

  2. Justin Tadlock

    Posted 7 years ago #

    Look for something like this line. I'm assuming you're referring to your home page, which is probably in index.php.

    comments_popup_link('No Comments', '1 Comment', '% Comments');

    I think you should just remove No Comments, leaving the quote marks.


  3. sparkiecat
    Posted 7 years ago #

    Thanks! I found it in my comments.php - unfortunately removing it didn't do anything. I left the quote marks. Does that mean I have to live with lots of posts marked "No Comments" ? :(

  4. Justin Tadlock

    Posted 7 years ago #

    As I mentioned already, you should look in index.php for this. The file comments.php has nothing to do with this.

Topic Closed

This topic has been closed to new replies.

About this Topic