WordPress.org

Ready to get started?Download WordPress

Forums

Child theme error “Template is missing” (7 posts)

  1. SRD75
    Member
    Posted 1 year ago #

    I created a child theme of twentytwelve using the following in style.css:

    /*
    Theme Name: WAMSA
    Template: twentytwelve
    version: 0.1
    */

    @import url("../twentytwelve/style.css");

    In Appearance > Theme, the template is listed with error:

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

    Description: Template is missing.

    The codex says only a style.css file is required, which is what I have.

    I uninstalled and reinstalled TwentyTwelve theme, without a change.

    Why is my child theme not being recognised?

    Update.

    Here is what I am doing to generate this problem.

    1. Twenty Twelve theme is installed.
    2. I create a folder on my local computer, and create a style sheet style.css inside this folder.
    3. I place the code above into style.css, then I FTP the folder I created up into /wp-content/themes.
    4. When I go to Appearance > Themes, I receive the errors above.
  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Did you create the style.css file using a plain text editor?

  3. SRD75
    Member
    Posted 1 year ago #

    Yes. I think it was Notepad++. It was not anything like Word.

  4. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Do you know what format that file was saved in?

  5. SRD75
    Member
    Posted 1 year ago #

    Do you mean ASCII?

    I'm not sure. I will check again later tonight - 7 hours time.

    It would of been the default encoding of Notepad++.

  6. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Yeah, that should be okay...but maybe just try recreating a new one. Weird things happen :). Post back whenever you're back to it - someone can pick this up if I don't happen to be around.

  7. SRD75
    Member
    Posted 1 year ago #

    Thanks Yogi

Topic Closed

This topic has been closed to new replies.

About this Topic