This tool automates the setup of a custom WordPress theme based on the Twenty Twenty-Five theme. It clones the original theme, replaces key values, and prepares your theme for development.
Clone the repository or download the project files to your local machine.
git clone https://github.com/lightspeedwp/tour-operator-starter-theme.git
cd tour-operator-starter-theme
Once the you are inside the repo folder run the following command in your terminal to make it executable:
chmod +x setup-theme.sh
Now you can run the script by executing:
./setup-theme.sh
You will be prompted to:
-
Enter a new theme name
This replaces all instances of"Twenty Twenty-Five"
in the theme files. -
Enter your WordPress.org username
This updates theAuthor:
field instyle.css
and clears theDescription:
field.
- Clones the Twenty Twenty-Five theme from GitHub into a temporary
temp
folder. - Moves theme files to the project root, excluding:
.git
,.gitignore
,.gitattributes
package.json
,package-lock.json
composer.json
,composer.lock
- Deletes the temporary folder.
- Replaces:
"Twenty Twenty-Five"
→ your provided theme nameAuthor:
instyle.css
→ your WordPress.org username- Clears the
Description:
field instyle.css
- Your root folder will now contain the customized theme.
- You can:
- Copy the folder to your theme repository
- Begin development
- Zip and distribute/upload your theme
- Permission Errors? Try running with elevated privileges (
sudo
on macOS/Linux). - Internet Issues? Ensure you're online so the GitHub repository can be cloned.
This project is licensed under the MIT License. Customize and use it freely in your theme development process.
Feel free to fork this repo and contribute improvements via pull requests!