2
I have a problem loading my font via css
I’m using the font awesome 5
I’m implementing the icons via content
in the css
but the icon I want to use is not working this would be the link of the icon I want to use F0da but he doesn’t want to appear and the funny thing is that if I use this code for example appears f007
do not know what can be follow my code to analyze and link import
of the iconic library:
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.10/css/all.css" integrity="sha384-+d0P83n9kaQMCwj8F4RJB66tzIwOKmrdb46+porD/OvrJ+37WqIM7UoBtwHO6Nlg" crossorigin="anonymous">
HTML:
<div class="col-md-4">
<span class="text-uppercase text-white">Categoria</span>
<ul class="nav flex-column links-categories">
<li class="nav-item"><a href="#" class="nav-link">Açougues<span>(45)</span></a></a></li>
<li class="nav-item"><a href="#" class="nav-link">Adegas e bebidas<span>(64)</span></a></a></li>
<li class="nav-item"><a href="#" class="nav-link">Água Mineral<span>(49)</span></a></a></li>
<li class="nav-item"><a href="#" class="nav-link">Avícolas<span>(52)</span></a></a></li>
<li class="nav-item"><a href="#" class="nav-link">Bar e lanches<span>(214)</span></a></a></li>
<li class="nav-item"><a href="#" class="nav-link">Bombonieres<span>(7)</span></a></a></li>
<li class="nav-item"><a href="#" class="nav-link">Buffets<span>(33)</span></a></a></li>
<li class="nav-item"><a href="#" class="nav-link">Cafeterias<span>(68)</span></a></a></li>
</ul>
</div>
SCSS:
.links-categories{
li{
position: relative;
&:before{
content:"\f0da";
font-family: 'Font Awesome 5 Free';
position: absolute;
left: -20px;
top: 0;
color: $orange;
}
a{
font-size: 14px;
padding: 0;
}
}
}
here is the print of what the icon looks like:
it doesn’t work but if I use that code here f007
it works:
Couldn’t be with Fontawesome 4?
– hugocsl
@hugocsl then and that already started with the 5 to trying to use everything more current in this project until to using the new version of bootstrap hehehe has idea of what can be ?
– Felipe Henrique
I managed to do it with version 5 itself, had some details in the documentation. It’s kind of complicated but it worked :)
– hugocsl