Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial2 Answers
Yojance Rabelo
1,156 PointsHi There,
Please take a look at this page showing globals you can use to detech all kinds of things, including IE. https://codex.wordpress.org/Global_Variables
In your case, you would do something like:
<?php
global $is_IE;
if( $is_IE ) {
// Enqueue your IE scripts
}
SANDRA SOUTO
362 PointsThanks!
Craig Garrity
23,692 PointsCraig Garrity
23,692 PointsTry adding your own named conditional sheets with your relevant paths after the get_template_directory_uri() into your theme functions.php file. In this example respond.min.js and html5shiv are conditionally being loaded in the head.