Adding custom SVG icon sets

Blockify makes it possible to add entire custom SVG icon sets to the Icon block variation settings.

First, you'll need to add your SVG icons to a folder in a child theme or custom plugin. Once they have been added, you'll need to register them with Blockify using the blockify_icon_sets filter.

Below is an example of how to register a custom icon set added to the assets/svg/fontawesome folder of a Blockify child theme. Add the following code snippet to the child theme's functions.php file:

add_filter( 'blockify_icon_sets', function ( $icon_sets ) {

$icon_sets['fontawesome'] = get_stylesheet_directory() . '/assets/svg/fontawesome';

return $icon_sets;

} );


SVGs should be optimized with a tool like

If you are comfortable with the command line, you can also use for optimizing multiple icons at once (recommended).

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us