Support » Themes and Templates » Can't Get Child Theme To Load -"Template is missing" error

  • Resolved aswapna14


    I’ve been trying to implement a child theme of the WP 2016 theme and getting the following error.

    “Broken Themes

    The following themes are installed but incomplete. Themes must have a stylesheet and a template.

    Name Description
    twentysixteen-child Template is missing.”

    Does anyone have an idea why my theme isn’t showing up to activate? I have already checked that in the style.css file the “template” points to the directory name of the parent theme.

    Here is the directory layout:

    Here is the current style.css file under twentysixteen-child.

     * Theme Name:     Twenty Sixteen Child
     * Theme URI:
     * Description:    Child theme for the Twenty Sixteen theme
     * Author URI:
     * Template: twentysixteen
     * Version:        1.0
    @import url(“../twentysixteen/style.css”);

Viewing 2 replies - 1 through 2 (of 2 total)
  • Have you created a functions.php file?

    Using @import is no longer considered best practice. You’ll want to enqueue your stylesheets using WordPress hooks.

    You can read more about that just below the header css section on this page:

    Thanks for the information on enqueue. Will do. I am very much a newbie in wordpress.

    i have just found the solution for the original problem. In my style.css file i removed the space after the ” Template:” and it seems to work.

    ‘* Template:twentysixteen’

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can't Get Child Theme To Load -"Template is missing" error’ is closed to new replies.