Hello,
I am trying to wrap “N” and “comments” in “N comments” in two different CSS styles (see the comment box next to post titles in this example). I am clumsy with codes, and managed to do this very crudely as follows:
What is a better way to do this? For example, the second php call does nothing more than print “comment” or “comments” if comments_number() <= 1 or > 1, and is probably quite avoidable.
Thanks.
The topic ‘Comment number styling’ is closed to new replies.
(@manojit)
14 years, 10 months ago
Hello,
I am trying to wrap “N” and “comments” in “N comments” in two different CSS styles (see the comment box next to post titles in this example). I am clumsy with codes, and managed to do this very crudely as follows:
What is a better way to do this? For example, the second php call does nothing more than print “comment” or “comments” if comments_number() <= 1 or > 1, and is probably quite avoidable.
Thanks.