A simple WordPress starter theme powered by gulp for task running, using PostCSS and SUIT CSS for CSS. Base WordPress theme files are from Underscores.
- Clone this repo to
/theme-name
- Find/replace
WordPress Gulp
withTheme Name
,wordpress-gulp
withtheme-name
, andwpg
withtn
(your theme's slug) - Find/replace the current WordPress Gulp version number with your starting version number, e.g.
0.1.0
- Customise further theme settings at
/src/assets/styles/style.styl
- Run
npm install
to fetch dependencies - Run
gulp
to compile theme to/dist
Docker Compose is used to spin up a dev environment (npm start
) based on Visible WordPress Starter. See the Compose file at docker-compose.yml. You can access wp-cli by running npm run wp ...
e.g.
npm run wp plugin install <some-plugin>
npm run wp db import /data/database.sql
Navigate to Appearance > Menus in the WordPress Admin Panel and create a menu called "Main Menu" assigned to "Site Header" location and one called "Social Icons" assigned to "Site Footer - Right" location. These are referenced in your theme's header.php
and footer.php
files
The distributable folder is compiled by gulp to /dist
.
- Add your Google Analytics ID to
extras.php