Conditional Stylesheets

Allows registering a stylesheet along with a conditional under which to load it (e.g. ‘lt IE 9’).

The first parameter should be the condition, with the rest being identical to those used in wp_register_style.

register_style_conditional( ‘lt IE 9’, ‘ubuntu-regular’, ‘http://fonts.googleapis.com/css?family=Ubuntu:400’ );
wp_enqueue_style( ‘ubuntu-regular’ );

Comments  Leave a Reply

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WordPress Launch Checklist

The Ultimate WordPress Launch Checklist

We've compiled all the essential checklist items for your next WordPress website launch into one handy ebook.
Yes, Send Me the Free eBook!