I’ve been making a basic custom theme and everything was working fine. I had just finished pretty much styling everything in the blog section, left my computer for around 10 mins came back and it reverted back to the default twentyfourteen theme, claiming that my theme file was missing (‘the template file’). I double checked and the file is still there so no idea what is going here?
This is what the top of my CSS looks like:
/*
Theme Name: AppTh.at
Theme URI: http://shjohnson.co.uk
Author: Samuel Johnson
Author URI: http://www.shjohnson.co.uk
Description: A simple theme developed to market AppTh.at's products
Version: 1.0
This theme, like WordPress, is licensed under the GPL.
AppThat is part of the MonkeyFind Brand
*/
Someone mentioned trying to add ‘Template: appth.at’ but that didnt seem to do anything except show up the theme then when i tried to activate it, it said it was broken?
How your directory structure should look like:
Your CSS header looks fine, does your theme also has a index.php file? If not then you should add one this is required.
Adding
Template: appth.at
is not required, this is only needed when your creating a child theme, if you are then you should note the folder of the parent theme there. ie if you’re creating a child theme for Twenty Eleven then you write:Template: twentyeleven
First the obvious:
That should do it, but there may be other problems of course (even though the theme should show on the theme page).
WordPress codex offers clear information on theming: