This might work for you. try with enqueue instead of registering it.
wp_deregister_script('jquery');
wp_enqueue_script( 'jquery', get_template_directory_uri() . '/js/libs/jquery-3.1.1.min.js', array(), "3.1.1", true );
Related Posts:
- Not sure if enqueuing js scripts properly
- jQuery does not work
- Most elegant way to enqueue scripts in function.php with foreach loop
- Enqueuing Script in functions.php vs on the page
- jquery won’t load in footer
- How do I get a child theme to load scripts from the parent theme?
- Passing arguments to my function with do_action and add_action is not working
- Why won’t my scripts load?
- how to en-queue jQuery to load before the tag
- Attempt to change jQuery version caused White Screen of Death
- Scripts not loading when using the wp_enqueue_scripts action
- In jquery use php variable to execute an enqueued jquery file
- Run a jquery script on on a certain template page
- wp_enqueue_script | Help me figure out what is causing jQuery is not defined
- How to load jQuery in TOP of wp_footer?
- Include Jquery libraries in wordpress theme?
- colorbox not loading in
- How to use wp_enqueue_script properly?
- What is the earliest Hook a Script can use?
- post value to function with Ajax and jQuery
- WordPress Jquery+scripts enqueue issue
- How to wp_enqueue_script with html?
- Remove snippets of JS from core
- Is there a way to prevent a function/method from being called outside a specific hook?
- Plugin Scripts no loading on options page
- Why does get_template_directory_uri() not include “www”, only for enqueued stylesheets?
- Auto-Tweet if Type is ‘Status’ using OAuth
- Missing argument for the function
- Enqueue script on every page except one
- problem loading stylesheets to wp_head dynamically
- Add php code to wp_print_scripts?
- current_user_can comma list vs OR (||) list
- How can i unload effect.min.js file?
- Adding code before post title with the_title produces weird results
- Add back in child theme what the parent theme removed with remove_action
- Load JS file only in specific template
- login_headertitle is deprecated since version 5.2.0
- How to properly refresh page after form action?
- Init action and refresh page after form action
- 400 Bad Request – JavaScript App calling Custom wp-json endpoint
- Where is this JQuery coming from?
- Theme JS is available but theme CSS isn’t
- This code works, but the way I integrated it is breaking the media uploader. How can I integrate it properly?
- 404 when enqueue_script using plugin_url
- Auto scroll to id on page load on all pages except home page. Only do this on mobile
- Passing Jquery value to WordPress function
- Changing where my author box is printed
- Insert Content Before div#main from the functions.php File
- jQuery plugin not loading
- WordPress can’t get jquery/unslider to work
- Enqueue script: link not working in page source
- Add loggedout class on body using a function or JS
- Use add_action within template
- Are innerHTML elements visible to jQuery functions?
- video.js not enqueueing?
- Problem in using Customizer
- Problem with custom function when I go back with the browser
- Problem enqueuing scripts on not single posts
- Replace admin header logo with an image
- Call two different function.js depending on page
- New checkbox in custom widget isn’t saving data
- Strange error from functions.php files (wp_register_script)
- Why a SlideShow (made using JQuery FlexSlider) can’t work if I load it form functions.php but work if I load it from my footer.php file? [closed]
- Why I can’t load my JavaScripts using an hook inside my functions.php file?
- get content from page through AJAX
- Creating multiple category drop down
- How do I find the code executed when wp_head() is called?
- Enqueueing scripts selectively & activation where needed
- How to setup a popup registeration page in wordpress with function.php
- Why is this function crashing my wordpress installation? [closed]
- Fatal error: allowed memory size when after using enqueue_script
- How to add php within jquery
- template_redirect action only firing if logged in
- Help with IF has focus then… statment
- wp_enqueue_script() not working
- Get URLs for AJAX Filter Checkboxes WordPress
- Get webpack to work on child theme
- wp_set_object_term via js btn frontend
- Advanced method to control cache of enqueued style/script
- Fire action after enqueue script
- How to load a css file depending on the current role
- localize_script but data changes dependent on product ID
- Using get_terms for custom taxonomy in functions.php
- WordPress wp_dequeue_script remove all other scripts
- Add custom css file after plugin css with WordPress Child Theme functions.php
- Issue passing action class to nested function. Admin Columns
- Populate Product Regular Price with a calculated ACF Field Value
- Allow user select role in wordpress default registration without plugin
- Does hook have an effect on increasing the page load?
- Hide ‘add to cart’ when certain value in dropdown is selected
- Javascript file loads only on homepage, not on other pages (404 not found error)
- Is it possible to load recaptcha script only in url with fragment identifier (#)?
- Ajax Form Issues using Lightsail (AWS)
- How to Override Page Template if URL matches query?
- Save_post – Warning: Cannot modify header information
- How do I trigger WP CLI DB export using a PHP function?
- If has action not working as expected
- WordPress does not load jQuery
- Modifying a WordPress Plugin
- wp enqueue style on about us page