Created
August 3, 2016 13:49
-
-
Save rodica-andronache/9101ff8f9852242c97c53845498c56d0 to your computer and use it in GitHub Desktop.
WordPress enqueue style/script only for IE later than 9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wp_enqueue_style('zerif_ie_style', get_template_directory_uri() . '/css/ie.css', array('zerif_style'), 'v1'); | |
wp_style_add_data( 'zerif_ie_style', 'conditional', 'lt IE 9' ); | |
wp_enqueue_script( 'zerif_html5', get_template_directory_uri() . '/js/html5.js'); | |
wp_script_add_data( 'zerif_html5', 'conditional', 'lt IE 9' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment