A plugin to modify the Wordpress core/button block to include icons based on Nick Diego's (@ndiego) original plugin example - https://github.com/ndiego/enable-button-icons
Notable changes:
- There is a directory named
iconswithin the plugin directory. Upload your SVG's there. - The SVGs must have
width,height, andviewBoxattributes. They must havepathelements only, though you can have as manypathelements as needed. (nopolygon,rect, etc.) - The PHP will generate the markup on both the backend and frontend to implement them
- I changed the React to vanilla JS because I'm an old fart
Modify the CSS for your needs.