Bootstrap your next WordPress theme just by answering a few questions.
Report Bug
·
Request Feature
Table of Contents
This tool alows developers to quickly generate a WordPress theme and bootstrap a custom website by simply answering a few quick questions.
This project is intended to help other WordPress developers who are comfortable building custom themes and plugins, working with NodeJS and NPM, as well as some basic command line skills. The idea is to simply run clone the repo and install the dependencies, execute the program in the terminal, and follow the question prompts.
As mentioned above, this is a WordPress plugin that will depend on a few other things being in place. Here's a brief rundown of what's required:
- WordPress version 6.3.1 or higher
- PHP version 8.2 or higher
- NodeJS version 18.18 or higher
- Git
- Open a terminal window and navigate to the wordpress theme folder like so:
cd wp-content/themes/
. - Clone this repository.
git clone https://github.com/mjones129/themegen.git && cd themegen
. - Install deps by running
npm install
. - Execute the ThemeGen file by running
npm run themegen
. - Follow the prompts.
A new WordPress theme will be generated in your directory and your selected plugins will be downloaded and installed automagically.
Made a mistake? Want to quickly delete all your files and run a create a new theme with different options? Simply run npm clearblocks
. This will delete all the files that were created when generating a Blocks theme. There is currently no clearclassic
option.
- Add Classic Theme Support
- Add Blocks Theme Support
- Download and install a custom list of plugins in parallel
- Add support for custtom colors defined during generation
- Add basic theme template files for Blocks themes
- Add basic theme template files for Classic themes
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request