xxxxxxxxxx
// Call Css Js file on specifec page
function nk_styles() {
// Add page ID in if statement and call css or js file in if condition.
if(get_queried_object_id()== 9){
wp_enqueue_style( 'home', get_template_directory_uri() . '/home.css');
}
}
add_action( 'wp_enqueue_scripts', 'nk_styles' );