bpong/wordpress-headless

Custom WordPress theme for headless applications

0.3.1 2020-11-26 13:21 UTC

README

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

Installation

  • 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

License

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