-
-
Save anastransvelo/3f0c7d7e336f01d3b60efffc44780e0d to your computer and use it in GitHub Desktop.
Properly enqueue bootstrap into 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 | |
/** | |
* Enqueue scripts and styles | |
*/ | |
function electro_child_enqueue_scripts() { | |
wp_enqueue_style( 'bootstrap', get_stylesheet_directory_uri() . '/css/bootstrap.css', array(), 20141119 ); | |
} | |
add_action( 'wp_enqueue_scripts', 'electro_child_enqueue_scripts' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment