Created
April 28, 2016 21:55
-
-
Save UVLabs/9e6a643271ccc358161c94e31b9a6a0a to your computer and use it in GitHub Desktop.
Fix WordPress jQuery issue. Add snippet to functions.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'wp_enqueue_scripts', 'load_old_jquery_fix', 100 ); function load_old_jquery_fix() { if ( ! is_admin() ) { wp_deregister_script( 'jquery' ); wp_register_script( 'jquery', ( "//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js" ), false, '1.11.3' ); wp_enqueue_script( 'jquery' ); } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment