First Forums About Themeforest The required style.css file

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1571
    Crumina team
    Keymaster

    style.css is the one and only required file in a child theme. It provides the information header by which WordPress recognizes the child theme, and it replaces the style.css of the parent.

    #1572
    Crumina team
    Keymaster

    As with any WordPress theme, the information header must be at the top of the file, the only difference being that in a child theme the Template: line is required, so that WordPress knows which theme is the parent of the child theme.

    #1573
    Crumina team
    Keymaster

    Here is an example information header of a child theme’s style.css:

    /*
    Theme Name: Twenty Twelve Child
    Theme URI: http://example.com/
    Description: Child theme for the Twenty Twelve theme
    Author: Your name here
    Author URI: http://example.com/about/
    Template: twentytwelve
    Version: 0.1.0
    */

    #1574
    Crumina team
    Keymaster

    A quick explanation of each line:

    Theme Name. (required) Child theme name.
    Theme URI. (optional) Child theme webpage.
    Description. (optional) What this theme is. E.g.: My first child theme. Hurrah!

    #1575
    Crumina team
    Keymaster

    Author. (optional) Author name.
    Author URI. (optional) Author webpage.
    Template. (required) directory name of parent theme, case-sensitive.
    NOTE. You have to switch to a different theme and back to the child theme when you modify this line.

    #1576
    Crumina team
    Keymaster

    After you have created the child theme you must then enable it through the Administration Panels > Appearance > Themes. You should see your child theme as a separate theme and should bear the name you gave it in the style.css under Theme Name. Just creating a child theme will not activate it and make it visible on your website. Note that a child theme’s stylesheet replaces the stylesheet of the parent completely. (

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.