0

I understand the first comment in style.css dictates the difference between original theme and child theme.

Using the following simplest example is throwing the "Themes must have a stylesheet and a template ... Template is missing" error:

/*
Theme Name: Test
Theme URI: http://www.test.com
Description: Test install
Author: Test
Version: 1.0
Tags: Test
*/

File structure inside of themes directory:

themes
   -twentythirteen
   -test
      -css
         -style.css
      -index.php

The css seems to parse correctly and has line breaks making each entry in the comment distinct. I've tried creating multiple themes, all with the same result. The default themes are loading fine. Running this locally using MAMP, wp version 3.7.1.

Pulling my hair out here... any suggestions?

1 Answer 1

0

Move style.css out of /css and into the Theme's root folder.

2
  • Argh! That's what I get for being impatient. Any reason why wp requires it outside of a nested folder? Is there a way to keep the directory "tidy"?
    – PHPeer
    Commented Nov 18, 2013 at 19:56
  • Primarily, that's just where WordPress looks. It needs those header comments first, to identify the Theme as a valid Theme, and it only looks in the Theme root folder for style.css. Commented Nov 18, 2013 at 20:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.