- This topic has 8 replies, 3 voices, and was last updated 3 years, 11 months ago by
Tom.
-
AuthorPosts
-
June 9, 2019 at 1:26 am #923798
Garth Dryland
I’ve followed this for upgrading to font awesome 5, including said function (which I’m pretty sure works without the Better Font Awesome Plugin) but I can only get it to work with fas and fab, not the other new prefixes IE far and fal
Is that normal ?
It also seems like I can still use fa despite the fact it wont work if I deactivate the function so I assume fa is now pulling the font awesome 5 icons (whereas originally it only worked for version 4 with the serve side theme files) ?
Can I still use fa or should I only use fab and fas ?
June 9, 2019 at 4:19 am #923893epickenyan
The fa prefix has been deprecated in version 5. The new default is the fas solid style and the fab style for brands. https://fontawesome.com/how-to-use
June 9, 2019 at 7:47 am #924077Tom
Lead DeveloperLead DeveloperYou should use
fab
andfas
.I believe the light version is only available in Font Awesome Pro.
June 9, 2019 at 2:00 pm #924293Garth Dryland
Hey Tom
It works with or without the plugin, right ?
I also see here which isn’t a search term i used previously, down the page it says 2.3 will have its own icons.
How will they work ? Will they use the above said prefixes or another set of prefixes ?
I might just wait until 2.3 is released depending on how that gets set up.
Cheers
June 9, 2019 at 2:49 pm #924316Tom
Lead DeveloperLead DeveloperWhich plugin? You can use a plugin to add Font Awesome, or you can just enqueue it yourself without a plugin.
Right now GP uses its own font icons to display icons throughout the theme (menu toggle, search icon etc..).
In 2.3, we’ve added inline SVGs as an option, so it’s not necessary to enqueue the icons as a font.
June 9, 2019 at 3:56 pm #924337Garth Dryland
Hi Tom
I was referring to the Better Font Awesome Plugin but given what you said it works by simply adding function.
How do you call the GP icons ? IE what class etc. Is there a link explaining that ?
Cheers
June 10, 2019 at 8:43 am #925009Tom
Lead DeveloperLead DeveloperThe SVG icons in 2.3? You would be better off uploading/using your own SVG icons likely, as there would be no obvious benefit to using our icons.
If you wanted to anyways, you could just copy the SVG code output by the theme and use that code where you needed.
June 10, 2019 at 2:39 pm #925265Garth Dryland
Oh okay
What about the current icons re GP 2.2.X ? Are you referring to font awesome 4 icons when you said GP icons in which case I assume you call them by using the typical applicable fa prefixed class ?
Cheers
June 10, 2019 at 3:20 pm #925283Tom
Lead DeveloperLead DeveloperWe don’t use Font Awesome for the theme icons in 2.2.2 – they’re custom icons packaged into a font. In 2.3 you have the option to use the font (like now) or inline SVGs.
-
AuthorPosts
- You must be logged in to reply to this topic.