Last active
September 11, 2017 22:40
-
-
Save deeman/926edba054445a6217f509c3ed8d8dc0 to your computer and use it in GitHub Desktop.
Enque UI Kit with WordPress
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
<?php | |
//* Do NOT include the opening php tag shown above. Copy the code shown below. | |
add_action( 'wp_enqueue_scripts', 'custom_load_uikit' ); | |
/** | |
* Load UIKit. | |
*/ | |
function custom_load_uikit() { | |
wp_enqueue_style( 'uikit', '//cdnjs.cloudflare.com/ajax/libs/uikit/3.0.0-beta.30/css/uikit.min.css' ); | |
wp_enqueue_script( 'uikit', '//cdnjs.cloudflare.com/ajax/libs/uikit/3.0.0-beta.30/js/uikit.min.js', array( 'jquery' ), '3.0.0.30', true ); | |
wp_enqueue_script( 'uikit-icons', '//cdnjs.cloudflare.com/ajax/libs/uikit/3.0.0-beta.30/js/uikit-icons.min.js', array( 'jquery' ), '3.0.0.30', true ); | |
} | |
// GET UIKIT https://getuikit.com/docs/installation |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment