https://github.com/10up/block-based-theme-training
Training Project for the 10up Block Based Themes training
https://github.com/10up/block-based-theme-training
Last synced: 3 months ago
JSON representation
Training Project for the 10up Block Based Themes training
- Host: GitHub
- URL: https://github.com/10up/block-based-theme-training
- Owner: 10up
- License: mit
- Created: 2025-01-06T13:50:50.000Z (about 1 year ago)
- Default Branch: trunk
- Last Pushed: 2025-09-14T14:49:48.000Z (4 months ago)
- Last Synced: 2025-09-14T16:34:33.512Z (4 months ago)
- Language: PHP
- Homepage: https://gutenberg.10up.com/training/Block-Based-Themes/
- Size: 1.8 MB
- Stars: 3
- Watchers: 14
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 10up Block Based Theme Training
This repository contains the example code for the [10up Block Based Theme Training course](https://gutenberg.10up.com/training/Block-Based-Themes/).
## Getting Started
This project is structured same as any other 10up WordPress project that was scaffolded using the `wp-scaffold`. The project is a WordPress installation with a custom theme and a custom plugin. The theme is a block-based theme. The plugin contains some logic such as custom post types and custom taxonomies.
## Installation
1. Clone this repository as the `wp-content` directory in a WordPress installation.
2. Run `npm install` in the `wp-content` directory.
3. Run `composer install` in the `wp-content` directory.
4. Run `composer install` in the `wp-content/themes/10up-block-theme` directory.
5. Run `composer install` in the `wp-content/mu-plugins/10up-plugin` directory.
6. Run `npm run start` in the `wp-content` directory.
7. Add the following to your `wp-config.php` file:
```php
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
define( 'SCRIPT_DEBUG', true );
define( 'WP_DEVELOPMENT_MODE', 'all' );
```
8. Visit the WordPress admin and activate the `10up Block Theme` theme