WordPress Example Child Theme
Here is a ready-to-go example Child Theme that you can download and use on your own WordPress-powered site.
Contents
The download ZIP file contains three files:
style.css
functions.php
screenshot.png
These are the only required files to create a Child Theme. Of course you can add more theme template files as needed to customize the parent theme.
Notes
The Example Child Theme is mostly plug-n-play, however there are several things to keep in mind:
- Install and activate like a regular theme
- Open
style.css
and changethemedirectory
to match the exact name of the parent theme directory. So for example, if you are using this child theme for Twenty Sixteen, you would changethemedirectory
totwentysixteen
. - If your theme does not automatically enqueue the child theme stylesheet, you can enqueue it manually by un-commenting the
child-theme
line infunctions.php
. - The
screenshot.png
is very basic, customize as desired.
Check out DigWP for more information on enqueueing stylesheets with Child Themes.