Initial Setup / Configuration
1. Create a new repository for the them on Github
2. Modify style.css to include a Github URI
Theme Name: RANGHETTOdotNET Author: Stefano Ranghetto Description: RANGHETTOdotNET wordpress theme Github Theme URI: https://github.com/RangO1972/RANGHETTOdotNET_WP.git Version: 1.0.0
3. Create a Tag in your repository
In your local repo “tag” the repo with a version number. Version number need to match with what you have in “style.css”
$ git tag v1.0.0 $ git push origin v1.0.0
4. Install the Theme GitHub Updater Plugin
Download GitHub Updater plugin and upload on WordPress plugin
5. Upload Your Theme To Your WordPress Site
Go to Settings-> GitHub Updater -> Install theme
put the GitHub Uri and push Install theme
Updating The Theme
1. Make your theme updates
Edit your theme, modifications, additions you need.
2. Update The Version Number in Style.css
In your style.css
file, increment your version number, as in this example:
Theme Name: RANGHETTOdotNET Author: Stefano Ranghetto Description: RANGHETTOdotNET wordpress theme Github Theme URI: https://github.com/RangO1972/RANGHETTOdotNET_WP.git Version: 1.0.1
3. Commit the change locally and push the change to Github
4. Create a new tag and push the tag
Create a tag in git that matches the version number in step #2 and push that tag up to Github:
$ git tag 1.0.1 $ git push origin 1.0.1
That’s it!