• Hi guys

    I’ve searched on the support forum for this but cannot find an answer.

    i use ths code

    wp_deregister_script( 'jquery-ui-core');
    wp_deregister_script( 'jquery-ui-tabs');
    wp_deregister_script( 'jquery-ui-sortable');
    wp_deregister_script( 'jquery-ui-draggable');
    wp_deregister_script( 'jquery-ui-droppable');
    wp_deregister_script( 'jquery-ui-selectable');
    wp_deregister_script( 'jquery-ui-resizable');
    wp_deregister_script( 'jquery-ui-dialog');
    
     wp_enqueue_script( 'jquery');
    wp_register_script( 'jquery-ui', plugins_url( '/includes/js/jquery-ui-1.8.16.custom.min.js', __FILE__));
    wp_enqueue_script( 'jquery-ui');

    but i have an error when i click to “edit permalink” button

    Uncaught ReferenceError: editPermalink is not defined

    I tried to load the default wordpress ui datepicker but I’m getting the same error.

    Any ideas?

The topic ‘Including jQuery UI breaks pages and custom posts JavaScript’ is closed to new replies.