Any recommendations for serving up a custom style sheet for IE8? I'd like to use functions.php but wasn't sure what's the best methodology. Thanks for the help.
Targeting IE8 & serving up a different style sheet
(3 posts) (3 voices)-
- ChuckPosted 1 year ago #
-
There's a plugin on CodeCanyon that lets you target different browsers.
Theme By Browser for WordpressI have not tried it myself and I'm not sure this is what your are looking for but I thought I'd mention it.
Posted 1 year ago # -
you can add something like this to the functions.php of the child theme (add the ie8.css to the child theme folder):
function customcss() { ?>
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_directory'); ?>/ie8.css" />
<![endif]-->
<?php
}
add_action( 'wp_head', 'customcss' );Posted 1 year ago #
Reply
You must log in to post.