Support » Themes and Templates » Conditional Tags Aren’t Working

  • Using WP 2.9.2

    Conditional Tags don’t seem to be working in a template I am creating.

    This is the code in the head section:
    <!--[if IE]><link rel="stylesheet" type="text/css" href="styleIE.css" /><![endif]-->

    When I view source from IE8 I see:
    <!--[if IE]><link rel="stylesheet" type="text/css" href="styleIE.css" /><![endif]-->

    Shouldn’t the conditional tags be gone?

    What am I doing wrong? Do you have to do something else for this to work in WordPress?

Viewing 2 replies - 1 through 2 (of 2 total)
  • esmi

    (@esmi)

    Forum Moderator

    Shouldn’t the conditional tags be gone?

    No. What makes you think they will disappear?

    They’re also not going to work. You need to use:

    <!--[if IE]><link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/styleIE.css" /><![endif]-->

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Conditional Tags Aren’t Working’ is closed to new replies.