Friday, 18 June 2010

WordPress Broken Theme : Template is missing

I came across an interesting bug on a Wordpress development project I was working on this week. The issue was that the Wordpress Theme was reported as a Broken Theme because the "Template is missing" on the Appearances->Themes admin page.

In most cases the site was performing as expected using the allegedly broken theme, however the custom template selection was no longer available on the Pages admin page. (This is where I first spotted there was a problem and then discovered the Appearances->Themes admin page.)

After poking about for a bit, I traced the problem to a rather innocuous looking line the designer had added to the theme's style.css file.


It's just the "TEMPLATE:" portion that caused the style.css parser to fail. This line works just fine:


I doubt this error comes up often, but it took a few minutes to track down the problem so I thought I'd post something here to hopefully save somebody time in the future.


  1. Thanks for your informative article. Your blog is loaded with awesome information. Please include RSS field shat that we can receive your latest post direct to my inbox. Wordpress Course in Chennai

  2. You have finished a surprising job with you website. wordpress themes

  3. If you are looking for good web Development Company that can help you to achieve your goal then you need HIP. hire wordpress developer

  4. Thanks for your informative article. Your blog is loaded with awesome information.
    qtp training in chennai

  5. Great post. I like your post, Thanks for sharing.
    ios training in chennai

  6. We are offering you the best Best Winter Boots For Women In 2017. check it now

  7. Great Article… I love to read your articles because your writing style is too good, its is very very helpful for all of us. Do check Six Sigma Training in Bangalore | Six Sigma Training in Dubai & Get trained by an expert who will enrich you with the latest trends.

  8. Hi there I am so thrilled I found your website, I really found you by mistake, while I was browsing on Yahoo for something else
    safety course in chennai

  9. Amazing Article ! I have bookmarked this article page as i received good information from this. All the best for the upcoming articles. I will be waiting for your new articles. Thank You ! Kindly Visit Us @ Coimbatore Travels | Ooty Travels | Coimbatore Airport Taxi | Coimbatore taxi