This documentation site is about the unstable (upcoming) Comentario version.
Switch to the stable version »
Attribute: zero-text
The zero-text
attribute of the <comentario-count>
tag provides text displayed when there’s no comment
The zero-text
attribute of the count tag can be used to override the text displayed in the element when its value is 0
.
When the comment count returned by the server is zero:
- If
zero-text
is omitted, the count widget will display a literal zero (0
) combined with any prefix and/or suffix values. - If the attribute has a value (which can also be an empty string), that text will be displayed instead, and no prefix or suffix used.
Example
<p>This page has <comentario-count zero-text="no"></comentario-count> comment(s).</p>