Genericons
To add a Genericon icon to a menu item, open the Mega Menu settings for the menu item and click the ‘Menu Icon’ tab. You will see a list of available icon types listed across the top of the page. Select ‘Genericon’ select the icon you would like to use.
Dequeueing Styles
Max Mega Menu will automatically include the required Genericons CSS on your site. If your theme already includes the Genericon CSS, you can stop Max Mega Menu from including a copy of the CSS by adding the following code to your themes functions.php file.
1 2 3 4 |
function megamenu_dequeue_genericons() { wp_dequeue_style( 'megamenu-genericons' ); } add_action( 'wp_print_styles', 'megamenu_dequeue_genericons', 100 ); |
Like what you see? This functionality is available in Max Mega Menu Pro