Create a Theme Class

  1. In your site's Theme's directory create lawpress-theme.php with the following code:

    class LawPress_Theme extends WPLib_Theme_Base {   
  2. Add the following line to the top of your theme's functions.php file to load your LawPress_Theme class:

    require( __DIR__ . '/lawpress-theme.php' );
  3. You now have a Theme class you can augment later.

    • You should test your site to make sure it loads without breaking, though you will not see any changes yet.

What Did We Just Do?

NEXT: Create a Simple Module

BACK: Create an Application

UP: QuickStart