SVG Icon System
A system for inlining accessible SVG icons in WordPress themes.
★ 1stars
18composer 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/sbarry50/svg-icon-system/archive/refs/heads/master.zipAlso on Packagist as sb2-media/svg-icon-system:
composer require sb2-media/svg-icon-systemFrom the readme
SVG Icon System
A system for inlining accessible SVG icons in WordPress themes.
Features
Render SVG icons inline using a simple function call in your WordPress templates.
SVG icons are deconstructed and rebuilt in adherence to accessibility standards and guidelines.
A single config file is used to configure all SVG icons.
Choose whether to store SVG files in theme or plugin.
Requirements
WordPress = 4.7
PHP = 5.3
Composer
Node.js = 6.9.x
Installation
1. From the command line navigate to your WordPress plugins directory.
2. Run this command: composer create-project sb2-media/svg-icon-system.
3. Change into the SVG Icon System directory: cd svg-icon-system.
4. Run npm install.
5. Run npm run dev.
6. Run composer dump-autoload -o.
7. In the WordPress dashboard, navigate to the Plugins page and locate the menu item that reads “SVG Icon System.”
8. Click on Activate.
Usage
Icon Folder Storage
You may choose to store your SVG icon files in this plugin or anywhere in your theme. The plugin will strip the files of all , and tags and reconstruct them in adherence to accessibility standards and guidelines.
Plugin
By default SVG icons are stored in the assets/icons folde
Read the full README on GitHub →
Releases
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.