hello all
this is a temporary solution that will display the new Dashicons set instead of empty icons
– open the plugin directory and edit the file in that path inc/core.php , starting from line 85 you will find this part of code
if ( isset($item[6]) && ! empty($item[6]) ) {
if ( 'none' === $item[6] || 'div' === $item[6] )
$img = '<div '.$imgstyle.' class="wp-menu-image"><br /></div>';
else
$img = '<img '.$imgstyle.' class="wp-menu-image" src="' . $item[6] . '" alt="" />';
}
just replace it with the following code
if ( isset($item[6]) && ! empty($item[6]) ) {
preg_match('/^dashicons/', $item[6], $matches);
if ( 'none' === $item[6] || 'div' === $item[6] )
$img = '<div '.$imgstyle.' class="wp-menu-image"><br /></div>';
elseif (!empty($matches))
$img = '<div '.$imgstyle.' class="wp-menu-image dashicons-before '.$item[6].'"><br /></div>';
else
$img = '<img '.$imgstyle.' class="wp-menu-image" src="' . $item[6] . '" alt="" />';
}
i tried to keep the orginal code of the plugin away of modifications , i just added a new condition that look for “dashicons” and then it will alter the div classes with the needed icon class
hope this help