Support » Theme: Twenty Thirteen » CSS Conditional styles for IE 7 – functions.php

  • Hi

    I am using the Twentythirteen Theme and have a child theme running off it called Twentythirteen-child.

    I am trying to add an IE7 only conditional style sheet but not sure how to refernce this… think it needs to go into the functions.php file but for everything i’ve tried i’m not getting anywhere. Not a coder so would appreciate any help possible.

    I tried adding the following below the existing reference to the ie.css stylesheet call on line 181:

    // Loads the Internet Explorer 7 specific stylesheet.
    wp_enqueue_style( ‘twentythirteen-ie’, get_stylesheet_directory_uri() . ‘/ie7.css’, array( ‘twentythirteen-child-style’ ), ‘2013-07-18’ );
    wp_style_add_data( ‘twentythirteen-ie’, ‘conditional’, ‘lt IE 8’ );

    Where am i going wrong?

    Many thanks in advance.


Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘CSS Conditional styles for IE 7 – functions.php’ is closed to new replies.