This repository should only be used as an upstream source for projects.
- Node v16
- Yarn
- Composer 2
- clone repo
composer install- Copy
wordpress/wp-config-local-sample.phpand rename towordpress/wp-config-local.phpand update setting to make your local database - Copy
wordpress/wp-config-sample.phpand rename towordpress/wp-config.php - Setup MAMP Document root to the wordpress directory
yarn(from the root directory)yarn watchto build a dev version, start up a dev server and watch files
A relatively stripped back database to begin with is located at https://www.dropbox.com/scl/fi/jxnltpsoyhx8m442qngsr/museum-skeleton.sql.gz?rlkey=vxe269l414krhjfdm316sigmq&dl=0. This may have some project specific terms but overall it'll be a good baseline to work from. The administrator account has username "admin" and password "password" - make sure this is changed before the project is moved to any live hosting. You will also need to update the site URL, home URL, site name and admin email.
To scaffold a new component run yarn new:component and be sure to remove any files that won't be used such as _admin.scss and script.js
Allowed block types - Once you create a block, you will need to add it to the list of allowed blocks in inc/allowedBlocks.php. The reference will be acf/ followed by the block name in snake case (lower case with hypens for spaces).
Searching custom post types - If you need to add a custom post type to be available when searching, you need to add it to the post type array located in inc/search.php.
Editor colour palette - To update the default colour swatches located in the Gutenberg colour picker, you will need to update the array located in inc/theme.php.