WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Conditional Stylesheet (ie) for Child Theme of TwentyTen

[Resolved] Conditional Stylesheet (ie) for Child Theme of TwentyTen

  • This is probably a pretty stupid question.

    Does anything specific need to go at the top of a conditional stylesheet for IE?

    For example, in the style.css of twentyten you have:

    /*
    Theme Name: Twenty Ten
    Theme URI: http://wordpress.org/
    Description: The 2010 default theme for WordPress.
    Author: the WordPress team
    Version: 1.0
    Tags: black, blue, white, two-columns, fixed-width, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style, custom-menu (optional)
    
    License:
    License URI:
    
    General comments (optional).
    */

    Would the same need to be added to ie.css?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator keesiemeijer

    @keesiemeijer

    Nothing has to go at the top of a stylesheet. But in a child theme the Template and Theme Name: line is required, so that WordPress knows which theme is the parent of the child theme.

    Of course. I’m sorry. I should clarify that my child theme has something similar to:

    /*
    Theme Name: Twenty Ten Child
    Description: Child theme for the Twenty Ten theme
    Author: Your name here
    Template: twentyten
    */
    
    @import url("../twentyten/style.css");

    at the top of my style.css file. I guess my question, more specifically was do I need to place:

    /*
    Theme Name: Twenty Ten Child
    Description: Child theme for the Twenty Ten theme
    Author: Your name here
    Template: twentyten
    */

    at the top of my ie.css file?

    no u dont…………….or for any other imported or alternate css

    No, only style.css requires this. It is what tells wordpress about your theme when you go into your theme chooser.

    Thanks, guys!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] Conditional Stylesheet (ie) for Child Theme of TwentyTen’ is closed to new replies.
Skip to toolbar