This should work,it de-registers the jquery and another then re-registers in footer (as it's registered in the header by default)
function change_jquery_placement() { wp_deregister_script( 'jquery' ); wp_register_script( 'jquery', includes_url( '/js/jquery/jquery.js' ), false, NULL, true ); wp_enqueue_script( 'jquery' ); } add_action( 'wp_enqueue_scripts', 'change_jquery_placement' );
add to your functions.php at the bottom before any ?>
You may find it causes some other errors including jquery migrate and any plugins that add scripts to the header so you may need to add more to this function, personally I wouldn't bother as it's likely to cause issues but if you're determined, you can do this with a little bit of work
from Envato Forums - Latest posts http://ift.tt/2aSBkVf
via IFTTT
No comments:
Post a Comment