Created
November 28, 2015 00:08
-
-
Save soggybag/49b473fa9417e6f746f3 to your computer and use it in GitHub Desktop.
Wordpress, add jQuery to theme
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
// If your site plans to make use of JQuery you can have WP load JQuery with: | |
// Add JQuery to WP | |
function theme_init() { | |
if (!is_admin()) { | |
wp_enqueue_script('jquery'); | |
} | |
} | |
theme_init(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment