WordPress.org

Ready to get started?Download WordPress

Forums

WP Jump Menu
[resolved] Plugin does not work if wp-content is not in default folder (9 posts)

  1. JiDaii
    Member
    Posted 2 years ago #

    Hi,
    My content folder is outside of wp folder, I have define the constants WP_CONTENT_DIR and WP_CONTENT_URL. So the plugin is not installed in wp-content/plugin folder. This configuration doesn't work with the plugin. On load I have three 404 errors :
    /wp-content/plugins/wp-jump-menu/assets/js/colorpicker/css/colorpicker.css
    /wp-content/plugins/wp-jump-menu/assets/js/jqueryfunctions.js?ver=3.3.2
    /wp-content/plugins/wp-jump-menu/assets/js/colorpicker/js/colorpicker.js?ver=3.3.2
    The content path used in these urls are wrong.

    Thanks for help!

    http://wordpress.org/extend/plugins/wp-jump-menu/

  2. jkrill
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks JiDaii,

    I'm updating the plugin right now. You should see an update sometime later today.

    Jim

  3. JiDaii
    Member
    Posted 2 years ago #

    Thanks, I'm waiting for it!

  4. jkrill
    Member
    Plugin Author

    Posted 2 years ago #

    2.4.1 Is now available. Please let me know if this fixed your problem or if you are still experiencing issues!

  5. JiDaii
    Member
    Posted 2 years ago #

    New version just installed. But the drop down still doesn't work. I have no 404 errors anymore, but only the script colorpicker.js?ver=3.3.2 is loaded (I have not check loaded css). Also, it seems there is no change event bound on select#wp-pdd.

  6. jkrill
    Member
    Plugin Author

    Posted 2 years ago #

    Hi JiDaii,

    Do you have the latest version, 2.4.2? Is it working? Let me know.

    Perhaps there is a javascript error? Can you check the console of your browser?

    Thanks.

    Jim

  7. JiDaii
    Member
    Posted 2 years ago #

    No, still not work. The fact is only the colorpicker js file is loaded.
    But if I change the $handle argument of wp_enqueue_script function, that works.
    I replace this line (wp-jump-menu.php, line 177):
    wp_enqueue_script( 'jquery-functions', plugins_url().'/wp-jump-menu/assets/js/jqueryfunctions.js', array( 'jquery' ) );
    by this line :
    wp_enqueue_script( 'jquery-functions-jump-menu', plugins_url().'/wp-jump-menu/assets/js/jqueryfunctions.js', array( 'jquery' ) );
    Don't know why...

  8. jkrill
    Member
    Plugin Author

    Posted 2 years ago #

    Ok! Great. That's gotta be it. In your theme, you probably have something else enqueueing a script with 'jquery-functions'. I'm going to change my plugin to append 'wpjm-' before all those scripts are enqueued.

    Thanks for your help! Update should be coming through soon.

  9. jkrill
    Member
    Plugin Author

    Posted 1 year ago #

    I think we resolved this issue.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.