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.
- Host: GitHub
- URL: https://github.com/armandphilippot/wp-blank-theme
- Owner: ArmandPhilippot
- License: gpl-2.0
- Created: 2022-02-09T11:27:39.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-08-23T15:48:18.000Z (almost 3 years ago)
- Last Synced: 2025-03-13T07:42:36.207Z (over 1 year ago)
- Topics: headless-wordpress, wordpress, wordpress-theme
- Language: PHP
- Homepage:
- Size: 176 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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).