XF 2.1 FA Icons on Action Bar. Basic Stuff, really.

deslocotoco

Well-known member
Very simple thing, but i don't remember where i have to go:

194114

I remember that i edited some template to add this icons, but i forget where is it.

And would be nice to add FA5 instead of 4. Just replace "fa fa-xxx" to "fas fa-xxx", right?

EDIT:
- I found the code that i used in Default Template (extra.less), but is not working for SPAM. Could please someone show me where I'm wrong?

HTML:
/* Action Bar */
.actionBar-action--edit:before, .actionBar-action--report:before, .actionBar-action--ip:before, .actionBar-action--delete:before, .actionBar-action--spam:before, .actionBar-action--warn:before, .actionBar-action--history:before
{
display: inline-block;
font-family: FontAwesome;
font-size: inherit;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
margin-right: 5px;
}
.actionBar-action--edit:before
{
content: "\f040";
}
.actionBar-action--report:before
{
content: "\f071";
}
.actionBar-action--ip:before
{
content: "\f002";
}
.actionBar-action--delete:before
{
content: "\f00d";
}
.actionBar-action--spam:before
{
content: "\f05e";
}
.actionBar-action--warn:before
{
content: "\f12a";
}
.actionBar-action--history:before
{
content: "\f1da";
}
/* Action Bar */

If i use this Code on my child theme (customized one) i got a bunch of error icons.
 
Last edited:
Back
Top Bottom