• Resolved LasseMT

    (@lassemt)


    Hi guys.

    I created this child theme for this default theme template I’m using.

    The admin-panel says “This child theme inherits templates from a parent theme, My Template.”

    but when i am trying to view the site i get this error: “Notice: Theme without header.php is deprecated since version 3.0 with no alternative available. Please include a header.php template in your theme.”

    Header.php is included in my parent-theme and child-theme. I can view both the header.php files in admin panel editor.

    I have the same problem with the footer.

    What to do?

Viewing 5 replies - 1 through 5 (of 5 total)
  • You mentioned header.php is included in your child theme. Is the code the same as header.php in the parent theme? If so, it might be unnecessary to have header.php in the child theme directory.

    Thread Starter LasseMT

    (@lassemt)

    The code is different in the headers.

    The child theme header is empty, but i just realized that the child theme is trying to include the headers from wordpress’s deafult theme twenty ten ect. but i have deleted twenty ten from the wp-content folder.

    I am 100% sure about i have set the parent theme as the template inn the style.css for the child theme.

    Interesting. What’s the URL to the website in question?

    Another thought… You mentioned the header in the child theme is empty. That would likely cause problems and, possibly, lead WordPress to believe there is no header.php. That would leave you with no opening html tag, no long to the stylesheet, etc… If the header in your child theme is empty, I would recommend deleting that header.php file entirely and allowing WordPress to pick up the header template from the parent theme.

    Thread Starter LasseMT

    (@lassemt)

    I am working locally at the moment. I have allready tried that, but it seams to be in the wordpress setup or something like that.

    I am using wordpress with git, so i have made som modification to wp, så i has pulled the wp-content out of the wordpress folder. So the content is separated from wordpress. I have used this setup for other projects, so i will try to just setup the project again. Thank you for your time 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Child Theme doesn't find Parent Theme.’ is closed to new replies.