Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm beginning to learn theme creation, so I have created a very simple theme :

my_theme
    css
        style.css
    images
        logo.png
    index.php

But in wordpress, it appears as a broken theme : "missing template". Why ?

style.css :

/*
Theme Name: Kaoka
Description: Theme personnalise pour le site Kaoka
Version: 0.1
Author: Agence Nature / Brunet Production
*/
* {
    border:0px;
}

index.php :

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Mon premier tutoriel</title>
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css">
  </head>
  <body>
    <h1>Bienvenue sur le site <?php bloginfo('name'); ?></h1>
    <p><?php bloginfo('description'); ?></p>
  </body>
</html>

Thanks

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Your CSS file should be in the root of your theme, not in a folder

Edit: in case I wasn't clear, you need to take the CSS file out of the css folder, and place in the my_theme folder itself. It should be on the same depth as index.php

share|improve this answer
    
Yes ! it was simple as that ! But it's weird, as my css file was detected. The Theme tabs in BO was displaying the info I put in the header... Anyway, thanks a lot. I currently don't have enough reputation to remove the -1, but your answer deserve it. I don't understand why it was downgraded –  Matthieu Nov 28 '13 at 13:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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