PHP & Child Themes
-
Hello,
As I understand it, when creating a child theme you must:
- Make a new folder such as twentyten-child
- Create a new stylesheet with a Theme Name, the name of the Original Template, and import your stylesheet URL
I have done this, and all my stylesheet edits are showing perfectly. However, it is also my understanding that all you must do for edited PHP files to override the parent is to copy them to the correct location in the child theme folder (except functions.php, which requires new commands), make your edits, and that php file within the child theme should override the parent.
Is this ever NOT true, depending on the theme? Because I have copied over header.php and a variety of other PHP files from the parent, placed them in the proper location in the child, and still the theme is calling the parent. I have read many other threads on this and I am confident that I have done this correctly, but I still cannot get the theme to call the child PHP and not the parent.
Note: I’m not using twentyten, that was just an example.
- The topic ‘PHP & Child Themes’ is closed to new replies.