XF 2.1 Reactions Question

Blatchy

Well-known member
I am using

Code:
<span>{$thread.first_post_reaction_score|number} <i class="far fa-grin-hearts" Tooltip title="Reaction Score"></i></span>

How do I pass along the color of the reaction? It just remains the same color as the text.
 
I would use the <xf:reaction> tag instead:
HTML:
<xf:reaction id="{$reactionId}" small="true" tooltip="true" />
... replacing the reaction ID with the one you want.
 
Last edited:
Top Bottom