_hka_
My WordPress Starter Theme hka is based on Underscores https://underscores.me/
Getting Started
Change the name
The first thing you want to do is copy the _hka_
directory and change the name to something else, and then you'll need to do a six-step find and replace on the name in all the templates.
- Search for
'_hka_'
(inside single quotations) to capture the text domain. - Search for
_hka__
to capture all the function names. - Search for Text Domain:
_hka_
in style.scss. - Search for
_hka_
(with a space before it) to capture DocBlocks. - Search for
_hka_-
to capture prefixed handles. - Search for
_hka_
to capture the text domain in config.json
Requirements
Install
npm install
Run
gulp
To build sass files separately, run
gulp sass
Check text domain
gulp check-domain
To generate *.pot file, run
gulp translate
Zip
gulp zip
Linter tools
Require
npm run eslint
npm run eslint-fix
npm run stylelint
npm run stylelint-fix
npm run phpcs
npm run phpcs-fix