Skip to content

A super simple headless WordPress theme that prevents front-end UI from being shown; returns WP JSON API instead of website UI

License

Notifications You must be signed in to change notification settings

jonathanbell/simple-headless-wp-theme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Headless WordPress Theme

If you want to serve your WordPress install as a read-only JSON API, you can use this theme.

This theme will not show any front-end, and will redirect your homepage and any other page to your WP JSON API (for example, GET /wp-json)

This theme is useful when using WordPress in a headless manner.

Installation

  1. Clone or download this repository
  2. Copy config.ini.example to config.ini
  3. Change the values inside config.ini to your front-end configuration
  4. Upload the theme to your WordPress back-end and activate it

About

A super simple headless WordPress theme that prevents front-end UI from being shown; returns WP JSON API instead of website UI

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published