Categories
Code CSS WordPress

How to use your own widget icon in the WordPress Widget customizer


Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /srv/users/serverpilot/apps/katzco/public/wp-content/plugins/wp-syntax/wp-syntax.php on line 383

Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /srv/users/serverpilot/apps/katzco/public/wp-content/plugins/wp-syntax/wp-syntax.php on line 383

Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /srv/users/serverpilot/apps/katzco/public/wp-content/plugins/wp-syntax/wp-syntax.php on line 383

In developing deeper integration with the Customizer functionality of WordPress, I wanted to use a custom icon for my IDX+ plugin’s widgets. By default, WordPress defines a list of icons using their dashicons icon set and tries to guess the best icon for your widget based on the CSS class of your widget. Check out […]