WordPress.org

Ready to get started?Download WordPress

Forums

SanookSookjai Menu Icon
If Active this plugin then I can not Add media in page or post (5 posts)

  1. Firojmansuriscs
    Member
    Posted 1 year ago #

    It is nice plugin but we have some problem on it.
    When I have active this plugin I have create one problem .
    i am adding new page with add media but the image/video can't add on page or post.

    When deactivate this plugin then add media on page or post.

    please help me

    http://wordpress.org/extend/plugins/sanooksookjai-menu-icon/

  2. PeeBee65
    Member
    Posted 1 year ago #

    Same problem here. This didn't always happen but it definitely is this plugin's fault. Shame, because it's really neat.

  3. tracybcarpenter
    Member
    Posted 11 months ago #

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

  4. pauljbenedict
    Member
    Posted 9 months ago #

    tracybcarpenter - Thank you so much!

    That code worked perfectly.

    Much appreciated!

  5. ajtih.pentagon
    Member
    Posted 6 months ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.