WordPress.org

Ready to get started?Download WordPress

Forums

Child Theme requires index.php error (1 post)

  1. Chris Homko, MS ATP
    Member
    Posted 10 months ago #

    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");

Reply

You must log in to post.

About this Topic

  • RSS feed for this topic
  • Started 10 months ago by Chris Homko, MS ATP
  • This topic is not a support question
  • WordPress version: 3.6