Tagged: fontawesome
Hi, I’m currently reworking my site and have added a few new icons that I needed through Fontello packs. Unfortunately their copy of fontawesome is quite outdated and is missing some key new ones that would be really useful for me (like artstation for one. I am a fontawesome pro member, so have license to use, but is there any other way I can integrate the new FontAwesome icons into the Enfold theme (ideally into the dashboard) so they can be used for buttons etc?
Hey Digilocker,
Why arent you loading the font with the CSS from their CDN?
It is the quickest way :)
Best regards,
Basilis
Hey Basilis
I’m guessing this maybe the only way. I would have liked to have still incorporated it into the layout builder really so it would be easy to use with buttons and such but not sure which would be the best way to do that with using it just through css
Hi,
Thank you for using Enfold.
Do you have access to the svg file of the icon? You can upload the svg file to fontello and convert it to an icon file that is compatible with the theme’s icon font manager.
// https://kriesi.at/documentation/enfold/icon/#adding-your-own-fontello-or-flaticon-icons-
Best regards,
Ismael
Many thanks Ismael, didn’t realise that was an option on fontello, I now have the icons I need
you can embed it via:
function font_awesome_5( ){
?>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
<?php
}
add_action('wp_head', 'font_awesome_5');
and you can use it like this:
.custom-class h1:before {
content: "\f185";
font-family: "Font Awesome 5 Free";
font-weight: 700;
color: #db0f0f;
display: inline-block;
padding-right: 5px;
}