Adding your own SVG icons for the Template Editor

The plugin includes a set of royalty-free icons that can be used for any icon in the Template Editor. If you want to extend this list of icons you can create a folder named "wprm-icons" in your (child) theme. Any SVG file put in that folder will automatically get picked up by the Template Editor.

For example, all of these will now show up in the template editor:

/wp-content/themes/your-parent-theme/wprm-icons/chef.svg
/wp-content/themes/your-parent-theme/wprm-icons/knife.svg
/wp-content/themes/your-child-theme/wprm-icons/onion.svg
/wp-content/themes/your-child-theme/wprm-icons/pan.svg

In general, using your own child theme is recommended as theme files get overwritten when updating.

For even more flexibility the wprm_icon_sources plugin hook can be used to add another source for the SVG icons (or remove one). A source should be an array like this:

array(
	'dir' => '/path/to/wprm-icons';
	'url' => 'https://url.to/wprm-icons/';
);
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.