Created
January 8, 2014 18:06
-
-
Save norcross/8321396 to your computer and use it in GitHub Desktop.
load Bootstrap CDN items
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
<?php | |
add_action ( 'wp_enqueue_scripts', 'bootstrap_cdn_scripts_styles', 10 ); | |
function bootstrap_cdn_scripts_styles() { | |
wp_enqueue_style( 'bootstrap-css', '//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css', array(), '3.0.3', 'all' ); | |
wp_enqueue_script( 'bootstrap-js', '//netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js', array(), '3.0.3', true ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks so much! I am guessing this will work fine if I remove the style line? I already added the CSS I wanted to my child theme's style.css file. I put it before the Genesis standard CSS reset. Hoping putting it there will help me prevent css conflicts.