What Is The Most Important Step When You Create A Child Theme For WordPress

It is quite easy to create a Child Theme in WordPress. See how.

The most important step is to include the “Template” parameter in the metadata that declared in the comments of the file style.css.

For example:

/*
Theme Name: ClioWP Child
Theme URI: https://github.com/pontikis/cliowp
Description: ClioWP Child Theme
Author: Christos Pontikis
Author URI: https://pontikis.net
Version: 1.0.0
Text Domain: cliowp-child
Template: cliowp
*/

Only child themes will include “Template” in metadata.

The value of “Template” must be the parent theme directory (not the name). Without this line or if the directory mentioned in the “Template” does not exist, the Child Theme will not work.

Without “Template”, you will get the error:

Child Theme is broken
Child Theme is broken

With an invalid “Template”, you will get the error:

Child Theme is broken
Child Theme is broken

References

Your comments are welcome!