WordPress.org

Ready to get started?Download WordPress

Forums

SanookSookjai Menu Icon
not working for me! (2 posts)

1 star
  1. bustel
    Member
    Posted 1 year ago #

    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!

  2. tracybcarpenter
    Member
    Posted 1 year ago #

    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__ ));
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.