WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Conditional Stylesheet (ie) for Child Theme of TwentyTen (6 posts)

  1. Alx Block
    Member
    Posted 3 years ago #

    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?

  2. keesiemeijer
    moderator
    Posted 3 years ago #

    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.

  3. Alx Block
    Member
    Posted 3 years ago #

    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?

  4. Root
    Member
    Posted 3 years ago #

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

  5. Ganners
    Member
    Posted 3 years ago #

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

  6. Alx Block
    Member
    Posted 3 years ago #

    Thanks, guys!

Topic Closed

This topic has been closed to new replies.

About this Topic