Custom WordPress starter theme based on _s and bootstrap 5
GPL-3.0 License
Run "npm install" to install all dependencies
Put your fonts to /assets/fonts and add font-face imports to __font-faces.scss
Define headlines or body or default paragraph font styles etc. in the __fonts.scss file
Define bootstrap/hamburger or custom variables
Now you can run your npm build/watcher npm run build
or npm run watch
All WordPress core blocks except paragraph (for the ability to copy&paste blocks) & your acf blocks are removed by default, you can add them individually back here:
//custom-functions.php
function customs_allowed_block_types( $block_editor_context, $editor_context ): array|bool {
if ( function_exists( 'acf_get_block_types' ) ) {
$allowedBlocks = array_keys( acf_get_block_types() );
//add needed core blocks
array_push( $allowedBlocks, 'core/spacer', 'core/paragraph' );
return $allowedBlocks;
}
return $block_editor_context;
}
add_filter( 'allowed_block_types_all', 'customs_allowed_block_types', 10, 2 );
All local registered custom fields can be stored in your git repository and imported on your live server without having to export/import acf-json file or dabase
wp plugin install $(<"pluginlist.txt") --allow-root --activate
wp plugin update --all