Creating a child theme
-
I have been tasked to create a child theme, because I am not free to alter the parent theme.
I created a new style.css for the child, and put it into the child themes folder. This is how it is declared:
/* Theme Name: My Child (Child von Parent) Theme URI: Description: Author: myself Author URI: Template: ParenT */ @import url("../ParenT/style.css");
Now, when I look at the new theme in Dashboard, it gives me the following text:
… the templates are in /themes/Parent/someSubDirectory …..[my translation from the German text]
So, let’s say, I wanted to replace home.php of the parent theme with a similarly named home.php that I put into the child theme’s folder. But since the template is not properly referenced, WordPress is looking in the wrong place, to see if this is a new file or a replacement.
I hope I could explain this in an understandable manner. My question: how do I achieve it, that the reference points to the correct directory in the parent theme.
Regards, Domino
- The topic ‘Creating a child theme’ is closed to new replies.