Home Forums Basel support forum Update for jquery 3?

Update for jquery 3?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #197777

    LeachimW
    Participant

    I was surprised that Basel is still using default WP jquery v 1.x which is discontinuied and obsolete for few years now and because of that some very old versions of 3rd party plugins.

    I tried to update to 3.2.1, so far everything is working fine, just needed to update jquery-pjax and waypoints.

    I’ll keep you posted 🙂

    #197880

    Artem Temos
    Keymaster

    Hello,

    Our theme is compatible with a stable version of the jQuery library that comes with the WordPress core. We are not able to update it since it doesn’t depend on the theme.

    Kind Regards

    #197990

    LeachimW
    Participant

    You don’t need to use default WP jquery. Just deregister and register script with own library again.

    
    wp_deregister_script('jquery');
    wp_register_script('jquery', BASEL_SCRIPTS . '/jquery.js', [], null, true);
    wp_enqueue_script( 'jquery' );
    

    I’m doing it in my custom themes for years and since most plugins are using newer jquery standards anyway, no compatibility issues so far.

    #197992

    Artem Temos
    Keymaster

    It will cause some incompatibility issues with other plugins. Themes shouldn’t disable core WordPress libraries at all.

Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)