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?
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?
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.
http://codex.wordpress.org/Template_Tags/comments_popup_link
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" ? :(
As I mentioned already, you should look in index.php for this. The file comments.php has nothing to do with this.
This topic has been closed to new replies.