1function wpdocs_theme_name_scripts() {
2 wp_enqueue_style( 'style-name', get_stylesheet_uri() ); /* enqueues style.css */
3 /* if you want to enqueue other styles use: */
4 /* wp_enqueue_style( 'style-name', get_template_directory_uri() . '/css/your-style-name.css' ); */
5 wp_enqueue_script( 'script-name', get_template_directory_uri() . '/js/example.js', array(), '1.0.0', true );
6}
7add_action( 'wp_enqueue_scripts', 'wpdocs_theme_name_scripts' );
1function custom_theme_script(){
2 wp_register_style('bootstrap', get_stylesheet_directory_uri() . '/css/bootstrap.css' );
3
4 wp_enqueue_style('bootstrap');
5
6 wp_register_style('style', get_stylesheet_directory_uri() . '/css/style.css');
7
8 wp_enqueue_style('style');
9
10
11 wp_register_script('bootstrap', get_template_directory_uri() . '/js/bootstrap.min.js', array('jquery'), '20120206', true );
12 wp_enqueue_script('bootstrap.min');
13}
14
15add_action('wp_enqueue_scripts', 'custom_theme_script');
1wp_enqueue_script( $handle, $src, $deps, $ver, $in_footer);
2
3wp_enqueue_script( 'script', get_template_directory_uri() . '/js/script.js', array ( 'jquery' ), 1.1, true);
4