SVG Icon Block is a custom Gutenberg block plugin that allows you to add SVG icon to your Gutenberg block editor. It comes with a lot of customization options, as a result, you can customize it as per your needs.
Video Tutorial
Features
Easy to use
Simple, light-weight and fast
Font Awesome SVG Icon ( not font library, rather direct SVG)
Direct SVG upload option
SVG format support for direct upload
Rotate, Flip (Horizontal & Vertical) features are available
How do I add an SVG icon in the WordPress block editor?
Add the SVG Icon block from the inserter, then pick an icon from the Icon Library, paste SVG code with Custom SVG, or upload an .svg file. Use the block sidebar to change size, color and other styles.
Does this plugin load Font Awesome on the front end?
No. Each icon is saved as inline SVG markup, so no icon font, CSS file or JavaScript from Font Awesome is loaded on your site’s front end.
Can I upload my own SVG icons?
Yes. You can upload .svg files to the Media Library, drop them into the editor, or paste SVG code directly. Turn on Add to My Icons to save an icon for reuse.
Is it safe to allow SVG uploads?
The plugin sanitizes every SVG with an allow-list before it is saved. Scripts, event handlers, unsafe links and external references are removed, so a malicious file can’t run code on your site.
Can Authors and Contributors use the block?
Yes. Icons display correctly for users without the unfiltered_html capability, including on Multisite networks.
Can I link an icon?
Yes. Add a URL in the block settings and choose whether it opens in a new tab or uses nofollow or sponsored. For icon-only links, add alternative text so screen readers can announce the link.
Can I change the icon color on hover?
Yes. The block has separate normal and hover colors for the icon fill, stroke, label and background.
Does it work with Full Site Editing and block themes?
Yes. You can use the SVG Icon block in posts, pages, templates, template parts and patterns.