Skip to content

Instantly share code, notes, and snippets.

@stellarcowboy
Created March 12, 2015 16:17
Show Gist options
  • Save stellarcowboy/c4eb5c93876c75c0e333 to your computer and use it in GitHub Desktop.
Save stellarcowboy/c4eb5c93876c75c0e333 to your computer and use it in GitHub Desktop.
WordPress script enqueues for metaquery and matchMedia
wp_register_script('match_media', get_stylesheet_directory_uri().'/js/matchMedia.js', array('jquery'));
wp_enqueue_script('match_media');
wp_register_script('metaquery', get_stylesheet_directory_uri().'/js/metaquery.min.js', array('jquery','match_media'));
wp_enqueue_script('metaquery');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment