Skip to content

A simple little WordPress block that allows you add an SVG icon or graphic to your website.

License

Notifications You must be signed in to change notification settings

igui-br/icon-block

 
 

Repository files navigation

Icon Block

License

The Icon Block

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!

Key Features

  • 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

Requirements

  • WordPress 5.9+ or 5.8+ with Gutenberg active
  • PHP 7.0+

Development

  1. Set up a local WordPress development environment.
  2. Clone / download this repository into the wp-content/plugins folder.
  3. Navigate to the wp-content/plugins/icon-block folder in the command line.
  4. Run npm install to install the plugin's dependencies within a /node_modules/ folder.
  5. Run composer install to install the additional WordPress composer tools within a /vendor/ folder.
  6. Run npm run start to compile and watch source files for changes while developing.

Refer to package.json and composer.json for additional commands.

About

A simple little WordPress block that allows you add an SVG icon or graphic to your website.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 88.0%
  • SCSS 10.7%
  • PHP 1.3%