Jump to content
fredmbarrett

How to add additional Stylesheet for IE

Recommended Posts

fredmbarrett

I need to add a conditional stylesheet for Internet Explorer into the list of stylesheets that Pagelines generates. 

 

How do I do this?

 

For example, I want to add:

<!--[if msie]>
<link rel='stylesheet' id='my-msie-css'  href='/wp-content/themes/pagelines-template-theme/msie.css' type='text/css' media='all' />
<![endif]-->
 
How/where do I put this string?
 
Thanks in advance,
 

Share this post


Link to post
Share on other sites
Simon

 

I need to add a conditional stylesheet for Internet Explorer into the list of stylesheets that Pagelines generates. 

 

How do I do this?

 

For example, I want to add:

<!--[if msie]>
<link rel='stylesheet' id='my-msie-css'  href='/wp-content/themes/pagelines-template-theme/msie.css' type='text/css' media='all' />
<![endif]-->
 
How/where do I put this string?
 
Thanks in advance,

 

You'd need to use a wordpress 'action' to add it to the header.

http://codex.wordpress.org/Plugin_API/Action_Reference/wp_head

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×