Viewing 4 replies - 1 through 4 (of 4 total)
  • Same problem here. This didn’t always happen but it definitely is this plugin’s fault. Shame, because it’s really neat.

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

    tracybcarpenter – Thank you so much!

    That code worked perfectly.

    Much appreciated!

    Hello,

    I had faced the same issue of adding media to post or pages.

    I have modified the code as given add_action( ‘admin_enqueue_scripts’, ‘my_enqueue’ ); … When i did this, i could able to add media to post or pages. But it stops the working of menu addition.

    Please Fix this bug as this is a wonderful plugin which meet our needs.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘If Active this plugin then I can not Add media in page or post’ is closed to new replies.