Font Awesome
De officiële manier om Font Awesome Free of Pro iconen op je WordPress site te gebruiken, gebracht door het Font Awesome team.
Functies
Our official plugin makes it easy to add Font Awesome icons to your pages, posts, and templates and includes the following features:
- Use Pro or Free icons, from the latest release or a specific release.
- Use custom icons from your Pro Kits.
- Use a Font Awesome Kit to add any of our icons (including the latest Duotone styles and custom icons!), or select the Font Awesome CDN for Version 5 icons only.
- Zet automatische compatibiliteit voor Font Awesome versie 4 aan als jij – of je plugins – nog steeds versie 4 syntax gebruiken.
- Problemen onderzoeken en oplossen wanneer meerdere versies van Font Awesome op je site worden geladen vanuit andere plugins/thema’s, wat onverwachte icoon weergave of technische problemen kan veroorzaken.
Hoe te gebruiken
Installeer en schakel de plugin in (Zie de installatie tab voor details)
How to Add and Style Icons Full docs on how to use the plugin and add icons are available on the Font Awesome Docs site.
Add Icons in the Block Editor Once you’ve set up your plugin, you can add icons as blocks or inline with text.
To add icons as blocks, select the “Font Awesome Icon” block, and then click the “Choose Icon button” to open the Icon Chooser.
To add icons inline, select the Font Awesome option in the format toolbar to open the Icon Chooser. (Note: Inline icons require at least WP 6.3.)
Once you open the Icon Chooser, add icons by:
- Searching for the icon you want – you can search by icon name, category, or keyword.
- Changing the Family and Style using the drop downs if you want an icon in a different style.
- When you see the icon you want, clicking it to enter it into the content of your page or post.
Note: If you want to search and add Pro icons in the Icon Chooser, make sure you set your plugin to use a Pro Kit.
Add Icons in The Classic Editor
If you need to add icons in the classic editor, you can use the icon names in shortcodes or HTML. Add an icon using shortcodes to any text area – just add the name of the icon and a style prefix, where the prefix is the style of icon you want to use. Note that you don’t need to include the fa- part of the icon name. And if you don’t include any style prefix, the icon will default to the Classic Solid style.
De shortcode voor een pictogram ziet er als volgt uit:
[icon name="stroopwafel"]
[icon name="stroopwafel" prefix="fa-sharp fa-light"]
Je kunt ook eenvoudige HTML gebruiken met standaard Font Awesome-syntaxis, zoals dit:
<i class="fa-solid fa-stroopwafel"></i>
Using Pro Icons and Features To use a Kit to power your icons, create a Kit on FontAwesome.com and select “Pro icons” in the Kit Settings tab. Then grab your API Token from your Font Awesome Account page and add it to your WordPress plugin settings.
To use the CDN to power your icons, know that you will only be able to use icons from Version 5. To enable Pro icons, add your site’s domain to the list allowed domains on your Font Awesome CDN Settings page and then use shortcodes or HTML to add the icons into your content.
Problemen oplossen met de plugin Font Awesome pictogrammen zijn populair, dus veel thema’s en plugins laden Font Awesome ook, en soms kan hun versie conflicteren met die van jou. Daarom hebben we een manier ontwikkeld om je te helpen bij het vinden en voorkomen dat conflicterende versies je pictogrammen beïnvloeden: De conflictdetectiescanner.
If the plugin seems to be set up correctly and your icons still aren’t loading and you’re not sure why, head over to the Troubleshoot tab, which has two parts:
- Conflicten detecteren met andere versies van Font Awesome – waarmee je de scanner voor conflictdetectie kunt starten om versies van Font Awesome te vinden die op je site worden geladen.
- Versies van Font Awesome actief op je site – die de resultaten van de scanner toont en waarmee je kunt voorkomen dat conflicterende versies andere versies van Font Awesome op je site laden.
Get more information about using the scanner for troubleshooting on the Font Awesome WordPress docs.
Configureren
De plugin is standaard ingesteld om Font Awesome Free pictogrammen als een weblettertype via het Font Awesome CDN te gebruiken. Je kunt de CDN instellingen rechtstreeks in de plugin wijzigen. Als je alleen de standaard gratis pictogrammen wilt, hoef je waarschijnlijk geen wijzigingen aan te brengen in de standaardconfiguratie.
Je kunt meer informatie krijgen over alle beschikbare instellingen en probleemoplossing op de Font Awesome WordPress docs.
Upgrading from Plugin Version 4
[icon]shortcodes found in Block Editor content and elsewehre will continue to work as before, though new icons added with the Icon Chooser in the Block Editor will be inline SVGs. Previously added[icon]shortcodes will not be automatically be converted into the new inline SVG format. If you want to convert an[icon]shortcode, delete it and re-add the icon using the Icon Chooser in the Block Editor.
Bekijk ook
De README op GitHub heeft details voor WordPress site eigenaren en ontwikkelaars.
Je kunt meer informatie krijgen over alle beschikbare instellingen en probleemoplossing op de Font Awesome WordPress docs.
En er zijn API-documenten voor ontwikkelaars.
