• Resolved John

    (@jsing)


    This sounds crazy but I use the theme menu (with the wordpress menu system) in the admin as well as out front, however the icon’s don’t appear. Any idea how to get them loaded in the admin as well?

    Thanks

    https://ww.wp.xz.cn/plugins/menu-icons/

Viewing 4 replies - 1 through 4 (of 4 total)
  • It is crazy, yet interesting! 🙂

    You can try adding the following to your theme/plugin:

    function _my_admin_menu_icons() {
    	if ( class_exists( 'Menu_Icons' ) ) {
    		add_action( 'admin_enqueue_scripts', array( 'Menu_Icons', '_load_front_end' ) );
    	}
    }
    add_action( 'admin_init', '_my_admin_menu_icons' );

    Thread Starter John

    (@jsing)

    I tried adding that to my theme’s functions.php, but it didn’t seem to make a difference. Any other suggestions?

    This is a really nice plugin by the way!

    Whoops, sorry I forgot a line 🙂

    function _my_admin_menu_icons() {
    	if ( class_exists( 'Menu_Icons' ) ) {
    		add_action( 'admin_enqueue_scripts', array( 'Menu_Icons', '_load_front_end' ) );
    		add_action( 'admin_enqueue_scripts', array( 'Menu_Icons', '_enqueue_styles' ) );
    	}
    }
    add_action( 'admin_init', '_my_admin_menu_icons' );
    Thread Starter John

    (@jsing)

    That did it, awesome. Thanks for the help!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Include in Admin?’ is closed to new replies.