Enqueue IE Conditional Scripts and Styles in WordPress
Posted: January 20th, 2016 | Tags: PHP • Tutorials • Wordpress | Posted in: PHP, Tutorials, WordpressIf you’re like me, and prefer to load all styles and scripts using wp_enqueue_style and wp_enqueue_script there’s quite an elegant way to do this in WordPress. First, in your functions.php (or however you organise theme files) create an array of the conditional scripts you wish to include: $conditional_scripts …
Read more…