Welcome to the WordPress Block-Based Theme Boilerplate! This project serves as a starting point for developing custom block-based themes for WordPress.
- Block Editor Support: Fully compatible with the WordPress block editor (Gutenberg).
- Modern Development Workflow: Utilizes modern web development tools and practices.
- Customizable: Easily extendable to fit your specific needs.
- WordPress: Version 5.8 or higher
- Node.js: Version 12.x or higher
- npm: Version 6.x or higher
-
Go to your WordPress theme directory. And Clone the repository to your theme directory:
git clone https://github.com/masoudgolchin/wordpress-block-theme-boilerplate.git
-
Navigate to the theme directory:
cd wordpress-block-theme-boilerplate
-
Install dependencies:
npm install
-
Build the theme:
npm run build
-
Activate the theme:
- Upload the theme to your WordPress installation.
- Go to the WordPress admin dashboard.
- Navigate to Appearance > Themes.
- Activate the "Block-Based Theme Boilerplate".
-
Start development server:
npm start
-
Build for production:
npm run build
wordpress-block-theme-boilerplate/
├── assets/
│ ├── css/
│ ├── js/
│ └── img/
├── includes/
│ └── template-functions.php
├── blocks/
│ ├── block-name/
│ │ ├── block.json
│ │ ├── edit.js
│ │ ├── editor.scss
│ │ ├── index.js
│ │ ├── render.php
│ │ ├── style.scss
│ │ └── view.js
├── build/
├── parts/
├── patterns/
├── templates/
│ └── index.html
│ └── single.html
├── styles/
├── style.css
├── functions.php
├── index.php
├── package.json
└── theme.json
└── README.md
Contributions are welcome! Please fork the repository and submit a pull request for any improvements or bug fixes.
This theme, like WordPress, is licensed under the GPL.