• I have this problem for several month, I don’t know how to change version of jQuery in wordpress. I read several articles and I try several things but still I don’t know how do it correctly.

    Please, really really please, say me what is wrong with this code:

    
    function reqister_new_jquery(){
    		wp_deregister_script('jquery');
    		wp_register_script('jquery-js','https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js', false, '3.1.0');
    		wp_enqueue_script('jquery-js');
    }
    add_action('init', 'reqister_new_jquery');
    

    I have mistakes:

    
    Note: The wp_deregister_script was called incorrectly. PLEASE do not unregister script jquery in the administration panel. TO unregister go recital displayed visitors, use the Hook wp_enqueue_scripts. Learn more: Debugging WordPress. (This message was added in version 3.6.0.) In C: \ xampp \ htdocs \ sofnet \ wp \ wp-includes \ functions.php on line 4136
    

    I really tryed to find what it mean, what I should to change and and I still don’t know. This code worked with oldest version of wp, but how it should to look now?

    • This topic was modified 7 years, 10 months ago by eFKa13.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘deregister jquery’ is closed to new replies.