XF 2.1 How do you change a font awesome icon?

beerForo

Well-known member
I have found in the template where it calls for the icon (icon=___).

But changing it's name to a fa name does not work, how exactly do we do this? Thanks!
 
"By default, XenForo buttons support the following icons (created with CSS):"

If the icon is not lon the supported list, can we not use it?

Trying to use: comment-lines

Thanks!
 
I would try to add the below CSS to the template core_button.less on line 178 (or above "add"):
CSS:
&--commentlines          { .m-buttonIcon(@fa-var-comment-lines, .79em); }
Then play around with icon="commentlines"

If it appears and the sizing is not to the liking, revisit core_button.less and change the .79em to another size.
 
Back
Top Bottom