Creating the boilerplate of theme for fast and rapid WordPress Theme using Gutenberg blocks, together with ACF Pro and blade.
ACF Pro plugin is required.
-
Uses Blade to render blocks on server-side with simple markup
-
π€Ήπ»β Keep as simple as possible
-
Based on Twenty Twenty Three theme
-
πͺΆβ Lightweght assets and WebPack
- Using wp-scripts package with WebPack underhood to build bundle with minification on production mode
-
Uses FontSource to use fonts locally and embed them to theme
-
π§βπ¨β PostCSS with stage-0 features to use any CSS-next features
-
Better Local JSON - ACF Pro UI automatically reads and writes json to block's folder instead of
acf-json
-
Clean structure - each block has his own separate folder, build and automatically bundled by WebPack
-
β‘β Great developer experience
- π Supports multi block compiling using one command to start.
-
Examples
- Testmonial
- Testmonial Item - example using Inner Blocks.
-
π¬β Coding standarts
- Phpcs and wp-coding-standards is available
- Prettier is used to format js, css files
-
πβ Translation Ready
- πβ Blade helpers for translation methods
- πβ Use @wordpress/i18n and __();
- π₯β Generate pot and json files for translation
Clone the repo using next command to your wp-content/themes/
directory:
git clone https://github.com/fnpen/wordpress-theme-acf-blocks-blade-boilerplate.git
Enable theme 'WordPress Theme Boilerplate using ACF Pro Blocks and Blade'.
Previews:
Install nodejs and npm to your system,
Install all packages :
npm install
// if you use pnpm:
pnpm i
Use the next command to build the bundle in development mode:
npm run start
Install PHP packages using Composer:
composer install
Have a great time with developing!
The bundle will be rebuilt on any file change.
Use the next command to build the bundle in production mode:
npm build