Revision: 42143
Updated Code
at February 28, 2011 06:55 by zreedeecom
Updated Code
How to add conditional comments to enqueued/registered styles for IE. In functions.php: wp_enqueue_style('internet-explorer', 'path/to/ie.css', false, '1.0', 'screen'); $wp_styles->add_data( 'internet-explorer', 'conditional', 'lt IE 7' ); // or lt IE 6 or lt IE 8 or whatever. This will result in: <!--[if lt IE 7]> <link rel='stylesheet' id='internet-explorer-css' href='path/to/ie6.css?ver=1.0' type='text/css' media='screen' /> <![endif]--> Example: $wp_styles->add_data( 'ie', 'conditional', 'lt IE 7' ); // or lt IE 6 or lt IE 8 or whatever.
Revision: 42142
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at February 28, 2011 06:47 by zreedeecom
Initial Code
$wp_styles->add_data( 'ie', 'conditional', 'lt IE 7' ); // or lt IE 6 or lt IE 8 or whatever.
Initial URL
Initial Description
Initial Title
Add conditional link for IE
Initial Tags
ie, wordpress
Initial Language
PHP