Reply To: Glyphicons

#20904
Daniel Tara
Keymaster

You have a filter called enlightenment_menu_icons that you can use to add more icons. Here’s an example:

add_filter( 'enlightenment_menu_icons', 'enlightenment_extra_menu_icons' );

function enlightenment_extra_menu_icons( $icons ) {
	return array_merge( $icons, array(
		'asterisk' => __( 'Asterisk', 'enlightenment' ),
		'glass'    => __( 'Glass', 'enlightenment' ),
		'signal'   => __( 'Signal', 'enlightenment' ),
	) );
}

The array key needs to be the glyphicon font class without the glyphicon- prefix, as they are defined at the Bootstrap Documentation. The array values are the text that will appear in the admin drop-down menu.