XF 2.1 Font Awesome 5.2 Not Working

LenKaiser

Active member
Hello I'm trying to add Font Awesome icons to my menus. I'm finding that the icons for version 5.2 are just showing a little box.

screenshot-menu.png

Am I possibly putting the wrong css code? Here is my css:

CSS:
.p-navEl [data-nav-id="myid"]:before{font-family:FontAwesome;content:"\f518";padding-right:5px}
.menu-linkRow.u-indentDepth0.js-offCanvasCopy[data-nav-id="myid"]:before{
    font-family: FontAwesome;
    content: "\f518";
    padding-right: 5px;
}

I have tried to change the font-family to Font Awesome 5 and that did not work.
 
There are some LESS mixins available which might work better than setting the properties manually:
Less:
.m-faBase();
.m-faContent(@fa-var-book-open);
 
Top Bottom