Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function kc_enq_scripts_method (){
- $stylesheetURI = get_stylesheet_directory_uri();
- $templateURI = get_template_directory_uri();
- // Get the main style.css from the child if it exists, parent if not
- wp_register_style( 'parent-style', $stylesheetURI . '/css/bootstrap.min.css', false, '1.0', 'screen' );
- wp_enqueue_style( 'parent-style' );
- // Scripts typically don't get overwritten, so enqueue from parent theme
- wp_enqueue_script( 'bootstrap.min.js', $templateURI . '/js/bootstrap.min.js', array( 'jquery' ), '1.11.3', true );
- wp_enqueue_script('jquery');
- wp_enqueue_script( 'jquery.min.js', $templateURI . '/js/jquery.min.js', array( 'jquery' ), '1.11.3', true );
- wp_enqueue_script( 'bootstrap.js', $templateURI . '/js/bootstrap.js', array( 'jquery' ), '3.3.4', true );
- }
- //only one call to hook per theme
- add_action( 'wp_enqueue_scripts', 'kc_enq_scripts_method', 9 );
- //register menus etc follows
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement