Creative Commons Chapter site theme (including chapter sites setup, taxonomies, and widget code)
This theme uses npm, gulp, and browserify to manage dependencies.
Versions of node and npm we know work:
npm 3.3.12
node 5.4.1
To install gulp:
npm install -g gulp
To build the js/css:
npm install
to download the 3rd party libs in package.json
gulp
in the background, i.e. run gulp
in a terminal and leave it
running. It will automatically recompile css/app.css
files as you edit
the src files.gulp dist
to create minified css/app.css
files.Clone the repository into your wp-content/themes
> git clone git@github.com:creativecommons/wp-theme-cc-chapter.git
then, go to the directory (cd wp-theme-cc-chapter
) and execute composer install
> composer install
Composer will install the required dependencies such as
Once composer finished to install dependencies a new directory called queulat
will be created in wp-content/mu-plugins
To enable this plugin you should create a queulat.php
file in wp-content/mu-plugins
with the following content:
<?php
/**
* Plugin Name: Queulat Loader
* Description: Load Queulat mu-plugin
*/
// Load Composer autoloader
require_once __DIR__ .'/../themes/wp-theme-cc-chapter/vendor/autoload.php';
// Load Queulat main file.
require_once __DIR__ .'/queulat/queulat.php';
note: if you chose a different directory name for theme repository you should replace wp-theme-cc-chapter
for the chosen directory/folder name
Once queulat is installed, you should install its javascript
dependencies by executing
> npm install --production
or
> yarn install --prod
You can download the zip of this theme and dependencies in the last release in the repository
Please unzip the downloaded file and copy/upload directories to the wordpress install in the following order:
wp-theme-cc-chapter
> mu-plugins
-> wp-content/mu-plugins/
wp-theme-cc-chapter
> themes/wp-theme-cc-chapter
-> wp-content/themes/wp-theme-cc-chapter
wp-theme-cc-chapter
> themes/twentysixteen
-> wp-content/themes/twentysixteen