Skip to content

ChrisWiegman/chriswiegman-theme

Repository files navigation

The WordPress theme for ChrisWiegman.com

Minimal and sustainable WordPress theme for ChrisWiegman.com.

Getting the theme

You can download the latest version from the releases page in this repo.

Setup and Usage of the Development Environment

A fully featured development environment is included using PHP 8.2 and more. Scripts to run commands including setup and more use make as a task runner. See the instructions below for getting started.

Before starting your workstation will need the following:

  1. Clone the repository

git clone https://github.com/chriswiegman/chriswiegman-theme.git

  1. Start Kana
cd chriswiegman-theme
make start

When finished, Kana will open a development version of your site in the browser and you're ready to go

WordPress Credentials:

URL: http://chriswiegman-theme.sites.kana.li/wp-admin

Admin User: admin

Admin Password: password

Using Xdebug

Xdebug 3 released a number of changes that affect the way Xdebug works. Namely, it no longer listens on every request and requires a "trigger" to enable the connection. Use one of the following plugins to enable the trigger on your machine:

To enable Xdebug using the built-in Kana configuration use the following:

kana xdebug on

Build the project

make build

Note, assets will also build during the install phase if you use make start.

I also use PHP_CodeSniffer with WordPress Coding Standards and JSHint with WordPress' JS Standards. Linting will automagically be setup for you if you use Visual Studio Code. If you want to run it manually use the following:

make lint