SVG Icon Block is a lightweight Gutenberg block for adding SVG icons anywhere in the WordPress block editor. Pick from more than 1,800 Font Awesome icons, paste your own SVG code, or upload an SVG file. Then style the icon with size, color, background, border, rotation and flip controls.
Icons are output as inline SVG markup, not an icon font. Your pages don't load an extra font file or stylesheet, icons stay sharp on every screen, and the Font Awesome data loads in the editor only when you open the icon library.
Video Tutorial
[youtube
http://www.youtube.com/watch?v=K7iUgJU42GI]
Three ways to add an icon
- Icon Library – search 1,800+ Font Awesome Free icons (Solid, Regular and Brands) and insert one with a click.
- Custom SVG – paste SVG code from Figma, Illustrator, Inkscape or any icon set. The markup is validated and previewed on light, dark and transparent backgrounds.
- Upload SVG – upload an
.svg file to the Media Library, or drop it straight into the editor. SVG uploads are enabled safely, with every file sanitized.
Features
- 1,800+ Font Awesome SVG icons (Solid, Regular and Brands)
- Custom SVG code with live preview and markup validation
- Safe SVG upload support for the Media Library
- My Icons – save your own SVG icons once and reuse them in any post or page
- Icon size, fill, stroke and hover colors, background, padding, border and border radius
- Responsive size, spacing and alignment for desktop, tablet and mobile
- Rotate and flip icons horizontally or vertically
- Optional text label next to the icon, with typography controls
- Link an icon to any URL, with new tab, nofollow and sponsored options
- Accessible: alternative text for icons, plus a warning when an icon-only link has no accessible name
- Additional CSS class and HTML anchor support
- Works with block themes, classic themes and Full Site Editing
- Lightweight with no third-party dependencies, and only the SVG markup is rendered
My Icons: a reusable SVG icon library
Paste your SVG code in the Custom SVG window, turn on
Add to My Icons, give it a label, and the icon is saved to your site. A
My Icons button then appears in the block placeholder, so you can insert that icon in any post or page without pasting the code again.
The library is shared by everyone on the site who can edit posts. A logo or brand icon saved by one author is available to the whole team. You can search and remove saved icons from the same window.
Secure SVG support
SVG files can contain scripts, so WordPress blocks SVG uploads by default. SVG Icon Block enables them safely: every uploaded file, pasted SVG code and saved icon goes through an allow-list sanitizer that removes scripts, event handlers, unsafe links and external references before anything is stored.
Use cases
- Feature lists and service boxes with icons
- Social media icons and brand logos
- Icon buttons and call-to-action links
- Contact details with phone, email and map icons
- Custom illustrations and logos as scalable SVG
- In your WordPress dashboard, go to Plugins → Add New and search for "SVG Icon Block".
- Click Install Now, then Activate.
- Open the block editor, click the + inserter and add the SVG Icon block.
- Choose an icon from the Icon Library, paste custom SVG code, or upload an SVG file.
To install manually, upload the
svg-icon-block folder to
/wp-content/plugins/ and activate it from the
Plugins screen.