Contributing

This page outlines how to contribute to the Aegis theme. Contributions are welcome from the community, whether they are bug fixes, new features, documentation improvements, or translations.

Updated 5 min read Atmostfear Entertainment

Getting Started

  1. Get a copy of the Aegis source code.
  2. Set up the development setup.
  3. Create a branch for your contribution.
  4. Make your changes.
  5. Submit a pull request.

Branch Strategy

Aegis uses a branching model with the following branches:

Branch Purpose Merges Into
main Production-ready releases —
develop Integration branch for next release main
feature/* New features develop
fix/* Bug fixes develop
hotfix/* Critical production fixes main and develop
docs/* Documentation updates develop

Branch Naming

Use descriptive branch names with the appropriate prefix:

Copied!
Git
feature/add-accordion-blockfix/slider-navigation-a11yhotfix/critical-php-errordocs/update-pattern-reference

Creating a Branch

Copied!
Shell
# Start from the develop branchgit checkout developgit pull origin develop# Create your feature branchgit checkout -b feature/your-feature-name

Making Changes

Coding Standards

All contributions must follow the project coding standards:

  • PHP — WordPress PHP Coding Standards (enforced via PHPCS).
  • JavaScript — WordPress JavaScript Coding Standards (enforced via ESLint).
  • CSS — WordPress CSS Coding Standards (enforced via stylelint).
  • No abbreviations or contractions in user-facing text.

See Code Quality for detailed linting information.

Commit Messages

Write clear, descriptive commit messages:

Copied!
Markdown
feat: add countdown block with configurable target date- Register countdown block with block.json metadata- Add editor component with date picker control- Add frontend JavaScript for timer animation- Add responsive styles for mobile viewports- Add unit tests for countdown logic

Commit Prefixes

Prefix Usage
feat: New feature
fix: Bug fix
docs: Documentation only
style: Code style (formatting, no logic change)
refactor: Code restructuring (no feature/fix)
test: Adding or updating tests
chore: Build process, dependencies, tooling
perf: Performance improvement
a11y: Accessibility improvement

Testing Your Changes

Before submitting a PR:

Copied!
Shell
# Run lintingnpm run lint# Run testscomposer run testnpm run test# Run accessibility testsnpm run test:a11y# Build production assetsnpm run build

All commands must pass without errors.

Submitting a Pull Request

PR Process

  1. Push your branch: bash git push -u origin feature/your-feature-name
  1. Open a pull request against the develop branch.
  1. Fill in the PR template with:
    • Summary of changes.
    • Related issue number (if applicable).
    • Testing steps.
    • Screenshots (for visual changes).

PR Title

Keep PR titles concise and descriptive (under 70 characters):

Copied!
Git
feat: add countdown block with date pickerfix: resolve slider navigation focus issuedocs: update template reference table

PR Description Template

Copied!
Markdown
## SummaryBrief description of what this PR does.## Related IssuesCloses #123## Changes- Added countdown block registration- Added editor component with date picker- Added frontend timer animation- Added unit tests## Testing1. Start the local environment2. Insert a Countdown block3. Set a target date in the future4. View the frontend and verify the timer counts down## Screenshots(Include screenshots for visual changes)## Checklist- [ ] Code follows project coding standards- [ ] Tests pass locally- [ ] No accessibility regressions (pa11y-ci / `npm run test:a11y` — threshold 0)- [ ] Documentation updated (if applicable)- [ ] Build completes without errors

Code Review

All PRs go through code review:

  1. Automated checks — CI runs linting, tests, and accessibility checks.
  2. Maintainer review — A project maintainer reviews the code.
  3. Feedback — Address any requested changes by pushing additional commits.
  4. Approval — Once approved, the PR is merged.

Review Criteria

Criterion Description
Code quality Follows coding standards, well-structured
Functionality Works as intended, no regressions
Performance Does not degrade page load performance
Accessibility Accessibility-ready foundation targeting WCAG 2.2 AA; no a11y regressions
Testing Appropriate tests included
Documentation Code is documented, user docs updated if needed

Types of Contributions

Bug Fixes

  1. Check existing bug reports for duplicates.
  2. Create an issue describing the bug (if one does not exist).
  3. Reference the issue in your PR.
  4. Include a test that verifies the fix.

New Features

  1. Open a feature request issue first to discuss the proposal.
  2. Wait for maintainer feedback before investing significant effort.
  3. Follow the established architecture patterns.
  4. Include tests and documentation.

Documentation

Documentation PRs use the docs/* branch prefix. Source pages live under docs/ (not a separate .wiki/ checkout). See Contributing Documentation for folder layout, sidebar wiring, link conventions, and scope rules (theme vs plugin vs Pro).

Typical updates:

  • Pages in docs/ (plus _sidebar.md / home.md when adding pages).
  • Root contributor files (README.md, DESIGN.md, INSTRUCTIONS.md, readme.txt).
  • Code comments (PHPDoc, JSDoc) when APIs change.

Translations

Translations are managed through WordPress.org or direct contributions:

  1. Generate a fresh theme .pot file: npm run translate. Plugin strings: npm run translate in wp-content/plugins/aegis-dash. Pro: regenerate languages/aegis-pro.pot.
  2. Create a .po file for your locale.
  3. Submit the translation via PR or the WordPress translation platform.

Reporting Issues

When reporting bugs:

  1. Search existing bug reports first. Send new reports to Atmostfear Entertainment through Getting Support: the community forum for free users, or a support ticket for Pro.
  2. Include:
    • WordPress version.
    • PHP version.
    • Aegis version.
    • Steps to reproduce.
    • Expected behavior.
    • Actual behavior.
    • Screenshots or screen recordings (if visual).

Community Guidelines

Next Steps

Was this article helpful?