Skip to content

Instantly share code, notes, and snippets.

@thecodepoetry
Last active March 25, 2021 13:48
Show Gist options
  • Save thecodepoetry/0db520a64ab48074026a20cdbe6234d1 to your computer and use it in GitHub Desktop.
Save thecodepoetry/0db520a64ab48074026a20cdbe6234d1 to your computer and use it in GitHub Desktop.
load jquery-mousewheel locally
function dt_jquery_mousewheel_local() {
wp_enqueue_script( 'jquery-mousewheel', get_stylesheet_directory_uri() . '/js/jquery.mousewheel.min.js', array( 'jquery' ) );
}
add_action( 'wp_enqueue_scripts', 'dt_jquery_mousewheel_local' );
@thecodepoetry
Copy link
Author

Make sure to download and save this file as jquery.mousewheel.min.js inside your child theme js folder
https://cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment