This topic contains 5 replies, has 1 voice, and was last updated by  Ваш Банкир 5 years, 5 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • #1571

    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.


    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.


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

    Theme Name: Twenty Twelve Child
    Theme URI:
    Description: Child theme for the Twenty Twelve theme
    Author: Your name here
    Author URI:
    Template: twentytwelve
    Version: 0.1.0


    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!


    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.


    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.