A simple little block that allows you add a custom SVG icon or graphic to the Block Editor (Gutenberg). The plugin also includes the complete WordPress icon library with 270+ SVG icons to choose from!
- 270+ native WordPress icons, including social logos
- Use any custom SVG icon or graphic
- Includes some handy icon controls (link, rotate, alignment, colors, border, padding, margin, etc.)
- No block library required 🎉
- Built almost entirely with native WordPress components
- Will get additional functionality as it's added to WordPress core
- WordPress 5.9+ or 5.8+ with Gutenberg active
- PHP 7.0+
- Set up a local WordPress development environment.
- Clone / download this repository into the
wp-content/plugins
folder. - Navigate to the
wp-content/plugins/icon-block
folder in the command line. - Run
npm install
to install the plugin's dependencies within a/node_modules/
folder. - Run
composer install
to install the additional WordPress composer tools within a/vendor/
folder. - Run
npm run start
to compile and watch source files for changes while developing.
Refer to package.json
and composer.json
for additional commands.