• I keep seeing references to making sure the parent theme is “optimized” or “enabled” to work with a child themes.

    I already know how to create a child theme. I want to know what I need to do in my parent theme so it will play nice with children.

    I can’t find any information about the coding requirements for a parent theme to work correctly with a child theme.

    Just to be really clear:

    If I code a parent theme called “You Are My Destiny” and then create a child theme under the parent named “Destinys Child” – What are the coding requirements in the “You Are My Destiny” theme to make it work correctly with the child theme, “Destinys Child”?

Viewing 2 replies - 1 through 2 (of 2 total)
  • There shouldn’t be much that you need to do to the parent theme, just so long as the child theme is inheriting its functionality. Is there something in your child theme that isn’t working as expected?

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Short answer: you’ll be fine with almost any theme as a parent. 😉

    Longer version:

    Any theme can be a parent if all you are doing is style.css changes.

    For modifying copies of the parent theme’s .php files, as long as the parent theme uses the standard template file names, then it’s fine.

    http://codex.wordpress.org/Theme_Development#Template_Files_List

    Even if the parent theme uses non-standard theme files, as long as the files are references using get_template_part() then the child theme copies (if any) will get loaded instead of the parent theme version.

    http://codex.wordpress.org/Function_Reference/get_template_part

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Enabling Parent Theme to work correctly with Child Theme’ is closed to new replies.