This sounds good but I couldn’t make it work. Unfortunately I still have this problem. So, I have a css-folder with ie-style in my child-theme.
I did this (where “sanahaltuun” is the name of the child theme):
// remove ie css from twentyfourteen theme
function mytheme_dequeue_styles() {
wp_dequeue_style( ‘twentyfourteen-ie’ );
}
add_action( ‘wp_enqueue_scripts’, ‘sanahaltuun_dequeue_styles’, 11 );
//add new from child theme
wp_enqueue_style( ‘sanahaltuun-ie’, get_stylesheet_directory_uri() . ‘/css/ie.css’, array( ‘twentyfourteen-style’ ), ‘1.0’ );
$wp_styles->add_data( ‘sanahaltuun-ie’, ‘conditional’, ‘lt IE 9’ );
But it gives error about the ‘sanahaltuun_dequeue_styles’.
thanks,
Eki