How can I add color to a “Font Awesome Icon Macro” macro?
I tried surrounding it with style but that didnt work:
(% style="color: red;" %){{icon name="exclamation"/}}(%%)
How can I add color to a “Font Awesome Icon Macro” macro?
I tried surrounding it with style but that didnt work:
(% style="color: red;" %){{icon name="exclamation"/}}(%%)
What you pasted works. Just make sure you write the code in “Wiki” editor, not in the WYSIWYG, or use the visual editor’s “Source” tab. Also you can read more about the “cssClass” parameter for the macro.
Also you can try:
(% style="color: red;" %){{icon name="exclamation"/}}(%%)`
{{icon name="exclamation" cssClass="text-danger"/}}
(%class="fa fa-exclamation text-danger"%)
(%class="fa fa-exclamation" style="color: red"%)