Joke Craeghs
asked 9 years ago

Hi, I think there is something wrong with the comments title. It should say "0 comments" or "3 comments" or "1 comment". I guess the error resides in comments.php on line 7 (the h2 tag). When there is only 1 comment, it still returns the word "comments".
You can also check this in your own demo on post: http://demo.designwall.com/dw-minion/?p=3

Is there any way to resolve this?

1 Answers
DominicStaff
answered 9 years ago

Hi,
To resolve this issue, you can Open the comments.php( line7 ).
Replace the following code: <h2 class="comments-title"><?php printf( _n( '1 Comment', '%1$s Comments', 'dw-minion' ), get_comments_number() ); ?></h2>

With new code: <h2 class="comments-title"><?php comments_number('No Comments', '1 Comment', '% Comments' );?></h2>
Hope this helps !

Powered by DW Question & Answer Pro