A custom WordPress child theme for Journey Into Freedom, extending the Blocksy theme.
This is a WordPress child theme built on top of Blocksy, a lightweight and highly extensible WordPress theme. The child theme provides custom functionality and styling specific to the Journey Into Freedom project.
- WordPress 6.0 or higher
- PHP 7.4 or higher
- Blocksy theme (parent theme)
First, ensure the Blocksy theme is installed:
- Log in to your WordPress admin dashboard
- Navigate to Appearance > Themes
- Click Add New
- Search for "Blocksy"
- Click Install and then Activate
- Download or clone this repository
- Upload the
jiffolder to/wp-content/themes/directory - Navigate to Appearance > Themes in WordPress admin
- Find the "Jif" theme
- Click Activate
This project uses DDEV for local development.
- DDEV for local environment management
- Composer for dependency management (run via
ddev composer) - PHP 7.4 or higher
- Clone the repository into
wp-content/themes/jifof a DDEV-managed WordPress project - Start the environment:
ddev start- Install dependencies:
ddev composer installThis theme includes PHPUnit tests with Brain/Monkey for mocking WordPress functions.
Run tests:
ddev composer testOr directly:
ddev exec vendor/bin/phpunitTest configuration:
- Test files:
tests/ - PHPUnit config:
phpunit.xml - Base test case:
tests/TestCase.php
The theme follows WordPress Coding Standards and includes automated linting.
Run linter:
ddev composer lintAuto-fix issues (where possible):
ddev composer lint:fixLinting configuration:
- PHPCS config:
phpcs.xml - Standards: WordPress-Core, WordPress-Docs, PHPCompatibilityWP
- PHP compatibility: 7.4+
This theme uses GitHub Actions for continuous integration and deployment.
To release a new version, use the provided version.sh script or the composer command. This automates the process of updating the version in style.css, committing the change, and creating a new tag.
# Automatically bump to the next patch version (e.g., 1.0.2 -> 1.0.3)
ddev composer version
# Bump to the next minor version (e.g., 1.0.2 -> 1.1.0)
ddev composer version minorThe script performs the following steps:
- Pulls the latest changes from the
mainbranch. - Increments the version number in
style.css. - Runs
composer lint:fixto ensure code quality. - Commits the version bump and creates a new Git tag.
- Pushes the changes and the tag to GitHub.
The following workflows run automatically on every push and pull request to the main branch:
- Tests (
.github/workflows/tests.yml) - Runs PHPUnit tests. - Lint (
.github/workflows/lint.yml) - Runs PHPCS to check against WordPress Coding Standards.
When contributing to this theme:
- Follow WordPress Coding Standards
- Write tests for new functionality
- Ensure all tests pass before submitting
- Run linter and fix any issues
- Update documentation as needed
This theme is licensed for use by Journey Into Freedom.