Replacing “No comments” with “Leave a comment” in WordPress

Many WordPress themes display the number of  comments. The number of comments is a way to show which posts are popular and which are not. The number of comments show a social proof. For a new blogger, or a blog which doesn't receive many comments, this can be a challenge.

Unfortunately many of the themes are too blunt when there are no comments. For new bloggers and blogs, it's not uncommon to see "No comments" or "0 comments" on a blog post. Wouldnt' it be better if it would say "Leave a comment" or "Start the discussion" instead? This post will show you how to do it...


One of the 15 tips to get more blog comments I wrote about was show number of comments, and a part of that tip was: add a call to action to the comment links, instead of showing "0 comments" or "no comments".

In the comments, Benjamin (of Peaceful Prosperity) asked:

I've heard several people recommend the "start the discussion" idea as opposed to "0 comments" (which does look a little sad)... but I haven't found an explanation of how to do this. Do you have any ideas about the 'how to'... or can you point me in the right direction?

And Steve (at JEDsWEB) sent me the same question via email:

I would like to know to change the number of comments to a call to action (for me it would be a WordPress hosted blog)

The previous post, covered how to show number of comments in WordPress to detail, in this post, I'll show how to add the call the action (it's not hard, but it does require digging into the php-files of the WordPress theme).

In short, it's matter of finding where the comment numbers are displayed in the theme, and edit the "No comments" or "0 comments" in to something else. The details and examples follow...

Warning: PHP code ahead

Since this WP hack takes you into WordPress theme files and you need to edit php-code, proceed with caution, but don't be too afraid. I try to keep it simple, so anyone can do this.

If you edit the .php code of your theme, make sure to backup of all your theme files before doing any changes. If anything goes wrong, revert back to the original files.

When you edit the WordPress theme-files, or any other code, I recommend you edit them via FTP and use good text editor with code-highlighting instead of "Appearance >> Editor" in the WordPress dashboard.

How to Add a Call to Action to the Comment Link

Tweaking what your theme shows when there are no comments is not the most important thing in blogging, but it's a cool little modification that can help increase the chances of getting more blog comments.

As mentioned in the beginning, a reader is much more likely to leave a comment if the comment link says "Leave a comment!" or "Start the discussion!" than blunt "0 comments". So no "zero comments", but something else instead... let's see how to modify your theme and make it little bit better...

By default comments_popup_link displays

  1. No Comments
  2. 1 Comment
  3. % Comments

If you theme displays "No Comments" or "0 comments" when there are no comments on a post, you should change that into a call to action, like "Be the first to leave a comment!".

  • open your theme php-files for editing, e.g. index.php
  • look for comments_popup_link and/or comments_number, e.g.
    • <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?>
  • If you can't find anything like that, look for anything related to comments with text that your theme currently displays
  • edit the values in it
    • Edit the "No comments" or "0 comments" to something else

Here are some examples:

<?php comments_popup_link( 'Leave a comment', '1 comment', '% comments so far', 'comments-link', 'Comments are off for this post'); ?>

<?php comments_popup_link('Be the first to comment!', '1 comment.', '% comments already!'); ?>

Make sure there is enough space on your theme to display whatever text you use. If your theme displays the number of comments on a place (or you set it that way), you can use longer phrases, like

<?php comments_popup_link('Start the discussion!', 'One lonely comment. Add yours to make it two!', '% comments already! Join the discussion!'); ?>

Or if you want to add the post title for example, you can go for something like

<?php comments_popup_link(__('Be the first to comment on ' . the_title('','',false)),__('One comment on ' . the_title('','',false)), __('% comments on '. the_title('','',false))); ?>

Personally I use something like (I suggest you make your match your style and blog):

  • Be the first to comment on this post
  • One comment, go ahead and add another
  • % comments already! Join the discussion

<?php comments_popup_link('Be the first to comment on this post!', 'One comment, go ahead and add another', '% comments already! Join the discussion'); ?>


It is better to not display "No comments" or "0 comments", but "Leave a comment" or other call to action instead. In your WordPress theme-files, look where the number of comments and comment links are placed and edit the descriptions to match your and your blog's style.

If you're uncomfortable doing technical tasks like this, you can always ask for help from someone, look for another theme or just leave it be and concentrate on more important things about blogging, like creating great content.

Remember to backup your (theme) files before editing anything so you can go back to the unchanged files. And if you're using a premium WordPress theme, you should contact the support of that theme before doing any changes, since they might have a solution or option in place so you don't have to hack (and possibly break) the precious premium theme.

Tell me how can I make this post and blog better to help you even more! If you have any comments or questions about this post or other WordPress hacks, theme related or not, feel free to ask your questions in the comments or send me an email using the contact form.

Posted by

Topic: WordPress
Tags: , , ,

If you enjoyed this post, sign up for updates (it's free)

Feedback, questions and comments are also welcome on my Facebook page