FontAwesome

Permalink
Hi, it is possible to install FontAwesome?
Thank you

Florencia
 
hutman replied on at Permalink Reply
hutman
FontAwesome is already included in 5.7+ you just need to require the asset in your page_theme.php in your theme (or block).
Florencia replied on at Permalink Reply
Florencia
Thanks hutman, any chance to give me more instructions? Maybe point me to a tutorial on what to insert in the php file to activate the fonts? Thanks
hutman replied on at Permalink Reply
hutman
Are you trying to get it for the whole theme, a specific block, or when do you need it? The placement would be different for each.
Florencia replied on at Permalink Reply
Florencia
The entire website and I have fundamental theme
hutman replied on at Permalink Best Answer Reply
hutman
You should be able to just go into your theme's directory and into the page_theme.php and in the registerAssets function put

$this->requireAsset('css', 'font-awesome');

If there is no registerAssets function add

public function registerAssets()
{
    $this->requireAsset('css', 'font-awesome');
}
Florencia replied on at Permalink Reply
Florencia
Thanks so much hutman ;)