Created
March 12, 2015 16:17
-
-
Save stellarcowboy/c4eb5c93876c75c0e333 to your computer and use it in GitHub Desktop.
WordPress script enqueues for metaquery and matchMedia
This file contains 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
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