Support » Plugin: SanookSookjai Menu Icon » not working for me!

  • i have installed this plugin and then I had problems to insert media on my pages… when I desactivate this plugin the problem is gone… this is not a good plugin!

Viewing 1 replies (of 1 total)
  • IMHO, it’s a great plugin, clean clear code, just not tested well enough. This is what worked for me:

    In sanooksookjai-menu-icon.php change…

    FROM
    add_action( ‘admin_init’, ‘sanook_menus_icon_scripts’ );
    function sanook_menus_icon_scripts() {
    wp_enqueue_script( ‘thickbox’ );
    wp_enqueue_script( ‘media-upload’ );
    wp_enqueue_script( ‘sanook-menu-icon’, plugins_url( ‘customize.js’ , __FILE__ ));
    wp_enqueue_style( ‘thickbox’ );
    wp_enqueue_style( ‘sanook-menu-icon’, plugins_url( ‘customize.css’ , __FILE__ ));
    }

    TO

    add_action( ‘admin_enqueue_scripts’, ‘my_enqueue’ );
    function my_enqueue($hook) {
    if( ‘nav-menus.php’ != $hook )
    return;
    wp_enqueue_script( ‘thickbox’ );
    wp_enqueue_script( ‘media-upload’ );
    wp_enqueue_script( ‘custom-menu-icon’, plugins_url( ‘customize.js’ , __FILE__ ));
    wp_enqueue_style( ‘thickbox’ );
    wp_enqueue_style( ‘custom-menu-icon’, plugins_url( ‘customize.css’ , __FILE__ ));
    }

Viewing 1 replies (of 1 total)
  • The topic ‘not working for me!’ is closed to new replies.