You can use the Custom HTML block and paste the SVG path of the icon. Here’s an example with a Material Icon
- det var via dette Feature request, jeg fandt : How to add icons in Gutenberg
Icons obviously are one of the most needed elements for a web page. In WordPress Gutenberg editor there is currently no default block to easily insert an icon such as Font Awesome, Material Design Icons, Unicons, Dashicons and many other. So let’s see an easiest way to add an SVG icon in Gutenberg as an Image. First of all, if you have images of your icons in any image format, that is already easy to do. Simply insert those using the image block. But if you are looking to insert some custom SVG icons or font-awesome or any other icons…
Fork Awesome, a free community based fork of the iconic font and CSS framework: Font Awesome
I min bogmærkesamler Shaarli benyttes Fork Awesome hvor jeg har set mulighederne for brug af ikoner også i WordPress
For eksempel kan der indsættes Shaarli logo med følgende html-kode:
<i class="fa fa-shaarli-o" aria-hidden="true"></i>
men læs hvordan det opsættes her: Get started
Her er alle mulige (... og måske umulige) iconer ...
Tjek siden for yderligere oplysninger
Her er lidt om at benytte Font Awesome til at indsætte ikoner i menuerne.