Iconography
Adds inline iconography options to the WordPress editor.
★ 1stars
9.9kcomposer installs
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/boxuk/wp-iconography/archive/refs/heads/main.zipAlso on Packagist as boxuk/wp-iconography:
composer require boxuk/wp-iconographyFrom the readme
Box UK WordPress Iconography Support
Add the ability to add icons inline to your content in the WordPress block editor.
Quick Start!
Add this plugin to your WordPress site and include a configuration file and it's ready to use!
If you're using composer, then it's as simple as composer require boxuk/wp-iconography.
Configuration
Configuration files are based on a schema that allows you to quickly define the configuration.
They're loaded automatically from wp-content/themes/{themename}/icons/.config.json, or you can define any custom paths using the filter available:
There's also example configuration files included in the plugin, so if you want to load Material Symbols you can just load the config included using this snippet:
There's loads of filters available to change the way icons load, so feel free to look through the source code at the available filters. And if there's function that doesn't work for you, PRs are always welcome!
Configuration Schema
The Schema for configuration includes:
- Title - the name output in the editor.
- Name - the unique key/name for the icon set. I'd recommend namespace/name format.
- Tag Name - this is the HTML tag that will be used to ge