WordPress.org

Ready to get started?Download WordPress

Forums

Help with: IE conditional comments in header for modular css. (2 posts)

  1. joncalex
    Member
    Posted 7 years ago #

    Hello,

    I have been working on my new site using wordpress as the frame work. I know some PHP. I understand some, but cannot code myself. What I am trying to do is set this in my header:

    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen, projection" />
    <!--[if lt IE 7]>
    <link type="text/css" rel="stylesheet" href="win.css" media="screen, projection" />
    <![endif]-->

    That way I can have a separate style sheet for ie css rules.

  2. As you can see, a relative link will not do and an absolute link will not do.
  3. I looked inside the theme.php file within wp-includes. Assuming that I may be able to customize something inside there but I have had no luck.
    Does anyone have any idea how I could accomplish this in wordpress?

    Thanks in Advance.

  • joncalex
    Member
    Posted 7 years ago #

    nvm I made a Plugin for it.. seems to work now odd.

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags