描述
This plugin provides a number of icons out-of-the-box that can be enabled and included in a site as SVG markup. Custom SVG icons/images are also supported.
The icons are placed on a page as HTML elements with specific class names which the plugin then replaces with SVG code via JavaScript.
For a full list of built-in SVG icons see built-in icons.
Support
Please submit bugs, patches, and feature requests to:
https://github.com/mishterk/dynamic-svg-icons-plugin-for-wordpress
安装
- Download
dynamic-svg-icons.zip
- Unzip
- Upload
dynamic-svg-icons
directory to your/wp-content/plugins
directory - Go to the plugin management page and enable the plugin
You can find full details of installing a plugin on the plugin installation page.
Full documentation can be found on the GitHub repository docs.
常见问题
- Why would I use this over an icon font?
-
This approach cuts out the additional requests to load an icon font. It is also easier to register your custom SVG images with this plugin than to load them into an icon font.
- Can I use my own SVG images?
-
Yes. See the using custom SVGs section of the documentation to learn how.
- Can I override the default icon SVG markup?
-
Yes. See the overriding built-in SVGs section of the documentation to learn how.