Requires the WP API Theming plugin.
- Install and activate the WP REST API plugin . Leave it on the
- Install and activate the WP API Theming plugin.
- Clone the Tango repo into your
git clone email@example.com:kwight/tango.git
cdinto your new Tango theme, and run
npm run buildto create
js/public.js. See Issues below if you get
- Activate Tango from
Appearance > Themes.
Tango requires some basic information to be able to properly connect to the API, and generate accurate links. These are set in
api: the API's index, eg.
serverRoot: the root folder of your web server, eg.
subdir: if your WordPress install is in a subfolder of your web server, enter the relative path here, eg.
localStorage: whether or not to use localStorage for API results (note: there is currently no handling for stale results)
npm run watch instead of
npm run build while developing, to have files recompile automatically upon save.
Make sure you have compiled
npm run build or
npm run watch) before activating Tango; otherwise, you'll get an error because of the missing required stylesheet.
On OS X, there is a known issue with low limits of open files, which can cause
Error: EMFILE errors with Browserify (used by
npm run build).
Some users report changing system settings with
sudo ulimit -n 2560 can solve it. If it does not, or you prefer not to change a system setting in that way, you can run
npm run watch instead to generate
js/public.js (but it will not be minified).