WordPress theme for drunkenux.com
Building the CSS and JS is managed via the WPGulp framework. Reference their documentation for full instructions.
- Clone this repo to your computer
- Set up a local WordPress environment (I recommend using Local by Flywheel) with the domain
drunkenux.local
- Install the UpdraftPlus plugin and activate it
- Log into the Drunken UX backend at [https://drunkenux.com/wp-admin] and download the latest backup files of the site (at least the database, uploads, and plugins)
- Upload and restore backup files to local environment
- Using the phpMyAdmin link in Local, go to the
wp_options
table and fix thehomeurl
andsiteurl
values to match your local domain (probablydrunkenux.local
from step 2) - Symlink your repo directory to the themes directory of your local environment
- Activate the new theme under Appearance in the local WordPress backend
- Open a terminal and cd to your repo directory
npm install
npm start
to start a Gulp task to watch and build files
When developing locally, the theme will load the a11y.css accessibility linting CSS to highlight possible issues with markup.