I register styles in function.php with
function my_scripts() {
wp_deregister_style( 'header' );
wp_register_style( 'header', get_template_directory_uri() . '/css/header.css' );
wp_enqueue_style( 'header' );
}
add_action( 'wp_enqueue_scripts', 'my_style_sheets' );
I'd like to use different header style sheet for the same header.php file used on another page. How do I do that?
In general, how do I use styles differentiated by template instead of using a global setting like the one above?