Hi, i’ve setted on header.php file the following code:
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
Now i’ve changed the .htaccess to allow cross origin:
Header add Access-Control-Allow-Origin "*"
Header add Access-Control-Allow-Headers "origin, x-requested-with, content-type"
Header add Access-Control-Allow-Methods "PUT, GET, POST, DELETE, OPTIONS"
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule !(js|ico|gif|jpg|png|css|swf|flv|libraries|maint|admin|login|logout|reg|woff) index.php [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
I’ve try to add the snipped code <i class="fas fa-home"></i>
in editor page on mozilla browser with f12 and it work. But when i use this on CSS not work (i not display icon)
.x-nav>.current-menu-item::before {
content: “\f015”;
font-family: “Font Awesome 5 Free”;
left:-5px;
position:absolute;
top:0;
}