Custom WordPress theme for headless applications

0.3.1 2020-11-26 13:21 UTC


pipeline status

WordPress Headless

A simple theme for headless WordPress applications. Performs clean up on default WordPress instances:

  • Redirects all non-REST API requests to a configured target
  • Removes most theme support
  • Adds excerpt to pages post types and overrides default to return empty string when excerpt is not set
  • Removes theme customizer sections and panels, including WooCommerce


  • Clone this repo to the wp-content/themes directory in a WordPress installation
  • Activate the theme via the Appearance | Themes menu in WordPress admin or via WP-CLI
  • Copy the file .env-example to .env and update configuration properties


WordPress Headless is open-sourced software copyright ©2019 by Robert Pratt and licensed under the GPLv3 license.