Md Mehedi Hasan

Including CSS & JavaScript | wp_enqueue_style | wp_enqueue_script

function alpha_assets(){
    wp_enqueue_style("bootstrap", "//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css");
    wp_enqueue_style("featherlight-cdd", "//cdn.jsdelivr.net/npm/featherlight@1.7.14/release/featherlight.min.css");
    wp_enqueue_style("dashicons");
    wp_enqueue_style("alpha", get_stylesheet_uri(),null, VERSION);


    wp_enqueue_script( "featherlight-js", "//cdn.jsdelivr.net/npm/featherlight@1.7.14/release/featherlight.min.js", array("jquery"), "0.0.1", true);
    // wp_enqueue_script( "alpha-main", get_template_directory_uri()."/assets/js/main.js", null, "0.0.1", true );
    wp_enqueue_script( "alpha-main", get_theme_file_uri("/assets/js/main.js"),array("jquery", "featherlight-js"), VERSION, true );  // Min wordpress version need 4.7
}

add_action("wp_enqueue_scripts", "alpha_assets");