# WordPress – Creating a Child Theme, the pure basics

A child theme consists of at least one directory (the child theme directory) that will be placed under the themes folder and two files (style.css and functions.php), which you will need to create:

This is basically all you need to create a child theme.

name the folder : themename-child
style.css – header:

/*
 Theme Name:   My Child
 Theme URI:    http://example.com/
 Description:  My Child Child Theme
 Author:       John Doe
 Author URI:   http://example.com
 Template:     myChild
 Version:      1.0.0
 Text Domain:  my-child-child
*/ 

functions.php:

 // Opening PHP tag - nothing should be before this, not even whitespace

add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
    wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );

}

Note: Check their is no trailing space after this close php tag (?>).

Now the thumb rule is that if you want to override a file in the pedant theme all you need to do is to create it with the exact same name in your child theme, or create new files with new functionality to extend the parent theme.