WordPress.org

Ready to get started?Download WordPress

Forums

Twenty Thirteen
CSS Conditional styles for IE 7 - functions.php (2 posts)

  1. Bytelab
    Member
    Posted 12 months ago #

    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.

    Hannah

  2. Tien Nguyen
    Member
    Posted 9 months ago #

    What's the version of WP that you are using? I installed 23 and have no this error with version 3.6+

Reply

You must log in to post.

About this Theme

About this Topic