Support » Fixing WordPress » Child Theme requires index.php error

  • Chris Homko, MS ATP


    I just encountered this error and found the solution that is NOT listed in previous threads. I hope this will help someone:

    You DO NOT need an index.php in your zip file or child theme folder as said in previous threads. The error is caused by forgetting to put the following line in your STYLE.CSS file:

    Template: your parent theme name folder name

    If you are missing Template: in your style.css, you will get an error that your child theme is missing index.php. Note that the parent theme folder name MUST BE EXACT as the folder name. It is case sensitive. If the parent theme is located in My-Great-Theme folder, you should do:

    Template: My-Great-Theme

    Note that this is the same as your @import url:

    @import url(“../My-Great-Theme/style.css”);

  • The topic ‘Child Theme requires index.php error’ is closed to new replies.