This documentation site is about the unstable (upcoming) Comentario version.  Switch to the stable version »

Attribute: prefix

The prefix attribute of the <comentario-count> tag provides text displayed before the number

The prefix attribute of the count tag can be used to prepend the displayed number with a custom string.

NB: when there’s also a zero-text attribute is provided and the number of comments is zero, no prefix is added to the element.

Example

<h1>Comments<comentario-count prefix=" (" suffix=")"></comentario-count></h1>

See also