[resolved] Creating a child theme (4 posts)

  1. domino5702
    Posted 6 years ago #

    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:
    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

  2. esmi
    Forum Moderator
    Posted 6 years ago #

  3. domino5702
    Posted 6 years ago #

    Thank you, that is precisely the page that I consulted before posting my question. I must be overlooking something, because I still cannot figurde out, what you are trying to tell me. Maybe, another hint would be helpful?

    Many thanks, Domino

  4. cinematic
    Posted 6 years ago #

    where did you place your child theme folder? It must not be a subdirectory of the parent theme but should have their own directory in the themes folder.

Topic Closed

This topic has been closed to new replies.

About this Topic