[theme-reviewers] Using wp_enqueue_style() With IE Conditionals

Chip Bennett chip at chipbennett.net
Thu Apr 21 18:22:54 UTC 2011


I just found this:
http://iamzed.com/2010/01/07/using-wordpress-wp_enqueue_style-with-conditionals/

wp_enqueue_style(
   'ie7-style',
   get_template_directory_uri() . '/ie7.css'
);
global <http://www.php.net/global> $wp_styles;
$wp_styles->add_data( 'ie7-style', 'conditional', 'lte IE 7′);


This might move into the Guidelines, as *Recommended* implementation of
enqueueing IE-conditional stylesheets. Thoughts?

Chip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20110421/703faec7/attachment-0001.htm>


More information about the theme-reviewers mailing list