Fontawesome brand icons

Hi
I have Fontawesome 6 PRO, is possible integrate it with GC Enterprise?

I need brand icons that are not displayed correctly with FontAwesome 5.An example: fab fa-whatsapp.

$crud->setActionButton('Chat', 'fab fa-whatsapp', function ($row) {
            $ChatURL=site_url().'chat/'.$row->id;
            return $ChatURL;
        },false);

Also tried:

$crud->setActionButton('Chat', 'fa-whatsapp', function ($row) {
            $ChatURL=site_url().'chat/'.$row->id;
            return $ChatURL;
        },false);

Or if anyone has a clue about how to fix it I’ll really appreciate too much.

Thanks

Hello @urgido ,

In order to do that you will need to un-load the font awesome icons from loading. You can do that by simply add the following line (also documentation for it):

$crud->unsetCssIcons();

With this you un-load the font-awesome icons and you can add your own implementation of font-awesome. You will need to make sure that you have loaded the CSS version of font-awesome 6.

If you’ve downloaded the Pro files directly, include the CSS file from your local setup. For example:

<link href="/path-to-fontawesome-pro/css/all.min.css" rel="stylesheet">  

And this should work. I am not sure about the details of how to download the assets from font-awesome 6 but I guess this article could be a good starting point: Use a Kit | Font Awesome Docs

Regards
Johnny

I set $crud->unsetCssIcons(); as your suggestion but is not working as expected.

I am using Metronic Template to build my backend. Fontawesome 5 (build into metronic’s source)brand icons are displayed correctly were I am not using GC but when I had GC this icons are not displayed.

Look at my attachment. (Black brush tape private info and red brush is to show that Fontawesome is displayed outside GC)

FYI:
const VERSION = "3.0.10"; // GC Version

same issue at latest version. I did an upgrade today