A free, open-source WordPress theme that allows non-profit organizations to maintain a professional and easy-to-use online presence.
- Copy the
civiquedirectory towp-content/themes/ - Visit the Themes page in wordpress
- Activate the theme
- Use the customizer to adjust colors, etc.
Install dependencies once:
npm install
composer install --no-devRun Prettier or ESLint:
npm run format
npm run lintCompile the primary stylesheet and modern TypeScript bundle:
npm run build:css
npm run build:jsRebuild automatically on changes:
npm run watch:css
npm run watch:jsSpin up a disposable WordPress instance with the theme mounted from the repository:
docker compose upThe first run will download the images and initialize the database. Then visit http://localhost:8080 and complete the standard WordPress install flow using the following database settings (pre-configured in the container):
- Host: db
- Database: wordpress
- Username: wordpress
- Password: wordpress
Any changes you make in the civique directory reflect immediately inside the container at wp-content/themes/civique. Stop the stack with docker compose down. Database content persists between runs in the db-data volume.
Create the distributable zip used for GitHub releases:
npm run build:themeThe build script reads the version from civique/style.css and writes a zip to dist/. When a release is published on GitHub, the Build Theme Release workflow packages the theme and attaches the artifact to the release automatically.
To allow WordPress sites to download private release assets, define the optional constant in wp-config.php:
define("CIVIQUE_GITHUB_TOKEN", "ghp_xxx");The theme checks GitHub releases for updates in the WordPress dashboard. Ensure each release contains a zip asset named civique-{version}.zip so the built-in updater can download the package successfully.