Title: CSS Conditional styles for IE 7 &#8211; functions.php
Last modified: August 21, 2016

---

# CSS Conditional styles for IE 7 – functions.php

 *  [Bytelab](https://wordpress.org/support/users/bytelab/)
 * (@bytelab)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/css-conditional-styles-for-ie-7-functionsphp/)
 * 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

Viewing 1 replies (of 1 total)

 *  [tien-nguyen](https://wordpress.org/support/users/tien-nguyen/)
 * (@tien-nguyen)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/css-conditional-styles-for-ie-7-functionsphp/#post-4090661)
 * What’s the version of WP that you are using? I installed 23 and have no this 
   error with version 3.6+

Viewing 1 replies (of 1 total)

The topic ‘CSS Conditional styles for IE 7 – functions.php’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/twentythirteen/4.6/screenshot.
   png)
 * Twenty Thirteen
 * [Support Threads](https://wordpress.org/support/theme/twentythirteen/)
 * [Active Topics](https://wordpress.org/support/theme/twentythirteen/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/twentythirteen/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/twentythirteen/reviews/)

## Tags

 * [child theme](https://wordpress.org/support/topic-tag/child-theme/)
 * [conditional](https://wordpress.org/support/topic-tag/conditional/)
 * [css](https://wordpress.org/support/topic-tag/css/)
 * [ie](https://wordpress.org/support/topic-tag/ie/)

 * 1 reply
 * 2 participants
 * Last reply from: [tien-nguyen](https://wordpress.org/support/users/tien-nguyen/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/css-conditional-styles-for-ie-7-functionsphp/#post-4090661)
 * Status: not resolved