Skip to content

Instantly share code, notes, and snippets.

@bonjmartn
Last active May 13, 2017 23:32
Show Gist options
  • Save bonjmartn/bc7f5f3640bfb9899a0d472b39333b1b to your computer and use it in GitHub Desktop.
Save bonjmartn/bc7f5f3640bfb9899a0d472b39333b1b to your computer and use it in GitHub Desktop.
function theme_styles() {
wp_enqueue_style( 'bootstrap_css', get_template_directory_uri() . '/css/bootstrap-3.3.7.css' );
wp_enqueue_style( 'main_css', get_template_directory_uri() . '/style.css' );
}
add_action( 'wp_enqueue_scripts', 'theme_styles');
function theme_js() {
global $wp_scripts;
wp_enqueue_script( 'bootstrap_js', get_template_directory_uri() . '/js/bootstrap.min.js' );
wp_enqueue_script( 'my_custom_js', get_template_directory_uri() . '/js/scripts.js');
}
add_action( 'wp_enqueue_scripts', 'theme_js');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment