FacetWP / use-child-theme

A WordPress class to ensure that a child theme is installed and active
65 stars 21 forks source link

Use Child Theme: Add child theme support to any WordPress theme

What problem does this solve?

If you make changes to a theme, those changes will be lost when the theme is updated. With a child theme, your changes are kept separate, so the parent theme can be safely updated.

How it works

Setup

If you're a theme developer, include use-child-theme.php in your theme, then add this code into functions.php:

require_once( trailingslashit( get_template_directory() ) . 'use-child-theme.php' );

Changelog

0.4

0.3

0.2

0.1