Child themes: disabling the parent

I’m creating a parent theme and several child themes. But how can I prevent the parent theme from ever being used?

Related posts

Leave a Reply

3 comments

  1. Not using the current system. In order to serve as a valid Template for a Child Theme, the Parent Theme must exist, and be a valid Theme. That’s because the Parent Theme’s template files must be accessible via locate_template(), in order for the Child-Parent fallback to work properly.

    Note: if this core Trac ticket is implemented, then you’ll be able to filter locate_template(), which would conceivably enable you to put your Parent Theme in a separate location, not accessible by Dashboard -> Appearance -> Themes.

  2. would – by ensuring the child theme had all the same template pages as the parent and by not including the @import of the parent css – be too dumb of an answer?