An open API service indexing awesome lists of open source software.

https://github.com/armandphilippot/wp-blank-theme

A WordPress blank theme for headless usage.
https://github.com/armandphilippot/wp-blank-theme

headless-wordpress wordpress wordpress-theme

Last synced: about 1 month ago
JSON representation

A WordPress blank theme for headless usage.

Awesome Lists containing this project

README

          

# WP Blank Theme

A blank theme to use WordPress as a headless CMS.

## Feature

If the `REDIRECTION_URL` is specified, the user will be redirected to the given URL when they try to access another URL than `/wp-admin/`.

## Setup

1. Install this theme in the WordPress theme directory (`wp-content/themes/`).

2. Install [Composer](https://getcomposer.org/) and run `composer install` in the theme's root folder to install dependencies.

3. Then, in your theme folder, create a `.env` file :

```bash
cp .env.example .env
```

4. Replace the `REDIRECTION_URL` value with your frontend URL.

5. Finally, activate the theme in the WordPress admin dashboard.

## Additional notes

Some files are here only for development purposes.

- The `./tools/` directory hosts some files to bump the version when a new release of the theme is created.

- The `./.vscode/` directory has been added on purpose. It contains settings for the [PHP Sniffer](https://marketplace.visualstudio.com/items?itemName=wongjn.php-sniffer) extension which helps me respect the [WordPress Coding Standards](https://github.com/WordPress/WordPress-Coding-Standards).

## License

This project is open source and available under the [GPL2.0-or-later License](./LICENSE).