WP-Mix

A fresh mix of code snippets and tutorials

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.

Download Example Child Theme

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 change themedirectory 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 change themedirectory to twentysixteen.
  • If your theme does not automatically enqueue the child theme stylesheet, you can enqueue it manually by un-commenting the child-theme line in functions.php.
  • The screenshot.png is very basic, customize as desired.

Check out DigWP for more information on enqueueing stylesheets with Child Themes.

Learn more

Digging Into WordPressWordPress Themes In DepthWizard’s SQL Recipes for WordPress