A bash script to help you set up a Sage theme inside your simple WordPress setup (without Bedrock).
Make sure the following are installed before running the script:
- npm
- Composer
- Git
- ACF Pro Plugin (Available in your WordPress installation)
- WordPress PHP version should be 8.2 or above
-
Copy and paste this setup.sh file in the theme directory
-
Create a GitHub Repository:
- Create an empty repository on GitHub. The repository name should be the name of your theme.
- For example, if your repository is named
my-theme
, the bash script will use this repo name and set the theme name asMy Theme
.
-
Download/Clone the Bash Script:
- Download or clone this bash script and place it inside your WordPress theme folder:
public/wp-content/themes
- Download or clone this bash script and place it inside your WordPress theme folder:
-
Run the Bash Script:
- Execute the script in the terminal from the
themes
directory:./setup.sh
- Execute the script in the terminal from the
-
GitHub Repo URL:
- The script will prompt you for the GitHub repository URL. Copy and paste the theme repo URL you created earlier.
-
Theme Setup:
- Once the basic Sage theme is set up, the script will ask for the theme developer’s name. It will use this information to update the
style.css
file.
- Once the basic Sage theme is set up, the script will ask for the theme developer’s name. It will use this information to update the
-
ACF Pro Plugin Installation:
- After the theme setup, the script will instruct you to install the ACF Pro plugin from the WordPress admin dashboard.
- Press any key to continue with the setup.
Once the setup is complete, your Sage theme will be ready for use.
Enjoy building your theme with Sage!