• This make the process of adding menu icons so much easier than row html and custom classes ??
    Clients will be satisfied to use this ??

    However, the plugin could have some performance optimizations, such as allowing to load the fonts we need only, and the font from others source (CDN, plugin/theme…)

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thanks for the 5-star review X-Raym!

    You can disable the icons you don’t need by unchecking them on the Menu Icons Settings meta box on the Menus editing screen ??

    To load the font files from CDN, see the plugins’ FAQ.

    Thread Starter X-Raym

    (@x-raym)

    Wow, how could I miss this very complete F.A.Q. !
    It seems that the plugin is more flexible that I thought. Awesome ??

    To disable ALL icon font CSS:

    /**
     * Do not let Menu Icons plugin load icon fonts, because we already loaded what we need
     */
    add_action( 'get_header', function () {
    	if ( class_exists( 'Menu_Icons' ) ) {
    		remove_action( 'wp_enqueue_scripts', array( 'Menu_Icons', '_enqueue_styles' ), 7 );
    	}
    }, 999 );

    Then you might need a CSS like this:

    .menu-item i._before {
    	margin-right: .25em;
    }

    Thread Starter X-Raym

    (@x-raym)

    Thank you Gregory, it will be very useful ??

    BTW, I tried unchecking fonts in the menu metabox – it never worked for me. Always came back to the same all checked.

    P.S. See the CSS above – I just added

    Thread Starter X-Raym

    (@x-raym)

    Hmm for reason your snippet just delete the icons from the menu, but it is not replaced by the fonts already loaded.
    It keeps margin and spacing but just delete the icons without replacing it by the font from the same name already loaded.

    Works for me. I have font awesome in my theme already, so I told the menu plugin that no need to load it again.

    All I do is disable call to enqueue_type_stylesheet()

    Thread Starter X-Raym

    (@x-raym)

    That’s make sense, but I test on two websites and they have the same error despite the fact that one was loaded font awesome from the theme and one was loaded font awesome from a plugin.
    Well, I will reread the API, I keep your trick in mind ??

    The settings checkboxes bug is caused by the default PHP post data value. Core is suffering from this too when you have many items on the menu you’re currently editing.

    I’ll try to find a work-around for this.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Very nice !’ is closed to new replies.