git-blog-theme
Firstly all rights and credit to Jeffrey van Rossum & TailPress website. I got into Wordpress following the you-tube screencasts series, and 90% of this theme was done back then, I only recently found time to finish the last 10% & felt it maybe helpful to others just starting out.
I was a Ruby developer so please excuse the php
that you find around the place, and I may have layed things out in a non Wordpress way.
git-blog-theme
is a minimal boilerplate theme for WordPress using Tailwind CSS.
My setup includes developing Wordpress using Local on top of Ubuntu 23.10 Linux. I've just been using Local in isolation and not connecting to any of their services.
Currently in use at git-blog-theme
git clone https://github.com/matoni109/git-blog-theme.git && cd git-blog-theme
npm install
npm run watch
to start developingnpm run watch-sync
which uses browser-sync - check package.json
for proxy setup info using Localgit-blog-theme
?Yes you can. Head over to releases and download the latest.
Upload the zip
file to your WordPress install in Appearance > Themes.
You will find the editable CSS and Javascript files within the /resources
folder.
template-parts/components
& cards
contain the main features that I've added along the way, others include:
functions.php
~ line050Before you use your theme in production, make sure you run npm run production
.
There are several NPM scripts available. You'll find the full list in the package.json
file under "scripts". A script is executed through the terminal by running npm run script-name
.
Script | Description |
---|---|
production | Creates a production (minified) build of app.js, app.css and editor-style.css. |
dev | Creates a development build of app.js, app.css and editor-style.css. |
watch | Runs several watch scripts concurrently. |
production-zip | Runs production and then creates a zip for theme export. |
Several colors and font sizes are defined from the beginning. You can modify them in theme.json
.
MIT. Please see the License File for more information.