Overview

About Aegis

The theme provides 50 templates, 230 patterns, 60 style variations, and, through the Aegis Dash plugin, the Countdown, Slider and Slide, Toggle and Toggle Content and Related Posts blocks. Video uses WordPress core/video, enhanced by the Aegis framework (see Enhanced Core Blocks). The Aegis framework (vendor/aegis/framework) enhances 37 core blocks and registers block variations.

The Aegis theme in its default style variation.

Aegis plugins extend the theme (documented in their own Doc Sets):

ProductDocs
Aegis Dash (free)Aegis Dash (Plugins)
Aegis Pro (coming soon)Aegis Pro (Plugins)
Aegis Ads (coming soon)Aegis Ads (Plugins)
Aegis Audio (coming soon)Aegis Audio (Plugins)
Aegis Docs (coming soon)Aegis Docs (Plugins)
Aegis Forms (coming soon)Aegis Forms (Plugins)
Aegis Video (coming soon)Aegis Video (Plugins)

Documentation Contents

Getting Started

Using the Theme

Design System

Blocks

Features

Development

Reference

Troubleshooting

Installation

Prerequisites

Before installing Aegis, ensure your environment meets the Requirements.

Installation Methods

Method 1: Upload via WordPress Admin

Uploading aegis.zip from Appearance → Themes → Add New Theme.

  1. Download aegis.zip from the latest Aegis release.
  2. Log in to your WordPress admin dashboard.
  3. Navigate to Appearance → Themes.
  4. Click the Add New Theme button at the top of the page.
  5. Click the Upload Theme button.
  6. Click Choose File and select the downloaded .zip file.
  7. Click Install Now.
  8. Once the installation is complete, click Activate.

Method 2: Manual Installation via FTP or File Manager

  1. Download aegis.zip from the latest Aegis release.
  2. Extract the .zip file on your local machine.
  3. Connect to your server via FTP or use your hosting control panel file manager.
  4. Navigate to the wp-content/themes/ directory.
  5. Upload the extracted aegis folder into the themes directory.
  6. Log in to your WordPress admin dashboard.
  7. Navigate to Appearance → Themes.
  8. Locate the Aegis theme and click Activate.

Method 3: Using Composer

If your project uses Composer for dependency management, you can install Aegis as a package:

Copied!
Shell
composer require aegiswp/aegis

Ensure the theme is placed in the correct wp-content/themes/aegis directory.

Method 4: From Source (Development)

For development, place the Aegis source in wp-content/themes/aegis and build it:

Copied!
Shell
cd wp-content/themes/aegiscomposer installnpm installnpm run build

Post-Installation Steps

Install PHP Dependencies

The Aegis theme requires PHP dependencies managed by Composer. The vendor/ directory must exist in the theme folder for the theme to function correctly.

If you installed Aegis from a release package, the vendor/ directory is already included. If you cloned the repository, run:

Copied!
Shell
composer install --no-dev

Verify Activation

After activating Aegis:

Aegis listed as the active theme.

  1. Visit your site frontend to confirm the theme is rendering correctly.
  2. Navigate to Appearance → Editor to access the Site Editor.
  3. Check that block patterns are available in the block inserter.

Optional: Install Aegis plugins

The theme works standalone for templates, patterns and style variations. For the Aegis blocks (Slider, Toggle, Countdown, Related Posts, Map, Modal), the Aegis admin dashboard, integrations (including Community → bbPress and SEO), snippets, conditionals, and analytics, install Aegis Dash:

The theme suggests Aegis Dash after activation.

Installing Aegis Dash From the Theme Notice

While Aegis Dash is inactive, Appearance → Themes shows an admin notice to administrators who can install plugins.

Developers can pin a release or use a mirror with the aegis_companion_package_url filter. See Hooks and Filters.

Next Steps

Requirements

Production Requirements

The following are the minimum requirements for running Aegis on a live WordPress site:

RequirementMinimum Version
WordPress7.0 or later (7.1+ for native Icon library registration)
PHP8.1 or later
MySQL5.7 or later (or MariaDB 10.3 or later)
HTTPSRecommended for all sites

PHP Extensions

The following PHP extensions are required or recommended:

Server Requirements

Development Requirements

For local development and building theme assets, you will need:

RequirementMinimum Version
Node.js20.18 or later (.nvmrc pins 22)
npm10 or later
PHP8.1 or later
Composer2 or later
GitAny recent version
DockerLatest (for wp-env)

Node.js Version

The theme includes an .nvmrc file that specifies the recommended Node.js version. If you use nvm (Node Version Manager), you can run:

Copied!
Shell
nvm use

This will automatically switch to the correct Node.js version.

Docker (Optional)

Docker is required only if you plan to use wp-env for local development. It is not required for theme building or deployment.

Browser Support

Aegis supports all modern browsers:

BrowserSupported Versions
Google ChromeLatest 2 versions
Mozilla FirefoxLatest 2 versions
Apple SafariLatest 2 versions
Microsoft EdgeLatest 2 versions

Aegis does not support Internet Explorer.

WordPress Plugins

Required Plugins

Aegis does not require any plugins to function as a theme. All core functionality works without additional plugins.

PluginPurpose
Aegis Dash (free)Aegis blocks (Slider, Toggle, Countdown, Related Posts, Map, Modal), admin dashboard, integrations, snippets, conditionals, analytics — docs
Aegis ProHook patterns, video stack, query conditions, Pro blocks — requires Aegis theme — docs

Plugin Requirements (Separate Products)

ProductWordPressPHP
Aegis theme7.0+8.1+
Aegis Dash7.0+ (requires Aegis theme 1.0.0+)8.1+
Aegis Pro7.0+ (requires Aegis theme 1.0.0+ and the Aegis Dash)8.1+

Compatible Plugins

Framework styling integrations (when plugin toggles enabled):

Additional integrations (ACF, SEO plugins, Google Maps, analytics) are configured in the Aegis Dash Integrations dashboard.

Checking Your Environment

Site Health → Info shows the PHP and WordPress versions your host provides.

Check PHP Version

You can check your PHP version in the WordPress admin under Tools → Site Health → Info → Server.

Alternatively, from the command line:

Copied!
Shell
php --version

Check WordPress Version

Navigate to Dashboard → Updates to see your current WordPress version.

Check Node.js and npm (Development)

Copied!
Shell
node --versionnpm --version

Next Steps

Quick Start Guide

Step 1: Activate the Theme

If you have not already activated Aegis, navigate to Appearance → Themes in your WordPress admin dashboard and click Activate on the Aegis theme card.

Step 2: Open the Site Editor

Aegis is a Full Site Editing (FSE) theme. All customization happens through the WordPress Site Editor:

Appearance → Editor opens the Site Editor.

  1. Navigate to Appearance → Editor in the admin dashboard.
  2. The Site Editor opens with a preview of your site.
  3. Use the left sidebar navigation to access templates, template parts, patterns, and styles.

For a detailed overview of the Site Editor interface, see Site Editor.

Step 3: Choose a Style Variation

Aegis ships with 60 style variations that change your entire site appearance with one click:

Browse styles lists every Aegis style variation.

  1. In the Site Editor, click the Styles icon (half-filled circle) in the top-right toolbar.
  2. Click Browse styles to see all available variations.
  3. Select a variation to preview it.
  4. Click Save to apply the variation to your site.

See Style Variations for a full list of available variations.

Step 4: Set Up Your Homepage

To create a homepage using Aegis block patterns:

Insert Aegis patterns from the Patterns tab of the block inserter.

  1. Navigate to Pages → Add New Page in the admin dashboard.
  2. Give your page a title (for example, “Home”).
  3. Open the block inserter by clicking the + icon in the top-left toolbar.
  4. Navigate to the Patterns tab.
  5. Browse categories such as Hero, Featured, CTA, or Testimonial.
  6. Click a pattern to insert it into your page.
  7. Repeat until you have assembled your desired layout.
  8. Publish the page.

Then set it as your homepage:

  1. Navigate to Settings → Reading.
  2. Select A static page under “Your homepage displays.”
  3. Choose your new page from the Homepage dropdown.
  4. Click Save Changes.

Step 5: Configure Navigation

To set up your site navigation:

Edit menu items on the Navigation block inside the header.

  1. Open the Site Editor (Appearance → Editor).
  2. Click on the header area to select it.
  3. Click on the Navigation block within the header.
  4. Use the block toolbar to add, remove, or reorder menu items.
  5. Click Save to publish your changes.

You can also manage navigation menus under Appearance → Editor → Navigation.

Step 6: Customize Global Styles

Fine-tune your site design beyond style variations:

Global Styles control site-wide typography, colors, and layout.

  1. In the Site Editor, click the Styles icon.
  2. Adjust Typography settings for headings, body text, and links.
  3. Adjust Colors for background, text, and accent elements.
  4. Adjust Layout for content width and padding.
  5. Click Save to apply your changes.

See Global Styles for detailed customization instructions.

Step 7: Configure Dark Mode (Optional)

Aegis includes built-in dark mode support:

  1. Dark mode is toggled by applying the is-style-dark class to the <body> element.
  2. You can enable dark mode globally through the Site Editor or conditionally per template.

See Dark Mode for configuration details.

Step 8: Install Aegis plugins (Optional)

Enhance Aegis with Aegis plugins:

After installing the plugin, open Aegis → Dashboard to configure blocks and integrations.

Building a Page with Patterns

Aegis includes 230 theme block patterns in 28 category folders (plus Aegis Dash and Pro patterns). Here is a typical workflow for assembling a page:

  1. Start with a Hero pattern — Choose from the Hero category for your page header.
  2. Add Feature sections — Showcase your services or capabilities.
  3. Include Social Proof — Add a Testimonial or Logos pattern.
  4. Add a Call to Action — Use a CTA pattern to drive conversions.
  5. Finish with a Contact pattern — Make it easy for visitors to reach you.

Each pattern is fully customizable after insertion. Change colors, text, images, and layout to match your brand.

Common First Tasks

TaskWhere to Go
Change site title and taglineSettings → General
Upload a site icon (favicon)Appearance → Editor → Styles → Site Identity
Set up a blog pageSettings → Reading → Posts page
Configure permalinksSettings → Permalinks
Add a contact formInstall Fluent Forms, then use a Contact pattern
Set up WooCommerceSee WooCommerce Integration

Next Steps

Updating

Before Updating

Before performing any update, take the following precautions:

  1. Back up your site — Create a full backup of your database and files.
  2. Check the changelog — Review the release notes shown with the update on Dashboard → Updates, or the theme’s CHANGELOG.md, for breaking changes.
  3. Test in staging — If possible, test the update on a staging environment first.
  4. Check plugin compatibility — Ensure your Aegis plugins (Aegis Dash, Aegis Pro) are compatible with the new theme version.

Block Migration Notes

Aegis blocks move to Aegis Dash

Slider, Slide, Toggle, Toggle Content, Countdown and Related Posts are provided by Aegis Dash 1.1.0 or newer. Block names, markup and CSS classes are unchanged, so saved content keeps working.

  1. Install and activate Aegis Dash 1.1.0 or newer (the theme’s notice on Appearance → Themes installs it).
  2. The first time it loads, Aegis Dash looks at your content and turns on the settings of every one of these blocks that a post, template or template part already uses. Blocks nothing uses stay off until you turn them on at Aegis → Blocks.
  3. Extras marked Pro stay off until Aegis Pro is active, then you can turn them on.
  4. Aegis theme 1.1.0 still contains its own copy of each block and registers it only while Aegis Dash is not providing it. A later theme release removes those copies, so do not wait.

Aegis (1.0.x) becomes Aegis Dash

The plugin that shipped as Aegis (folder aegis) is now Aegis Dash (folder aegis-dash). Aegis Dash cannot arrive as an update to the old plugin, because the folder name changed.

  1. Install Aegis Dash from the theme’s notice or upload aegis-dash.zip.
  2. Activate it. It deactivates the old Aegis plugin for you and keeps every setting.
  3. Delete the old Aegis plugin. While Aegis Dash is active, deleting it does not remove your Aegis Dash settings.

aegis/video → core/video

The aegis/video custom block was removed. Existing content still using that block should be migrated to core/video before or after updating.

Review affected pages in the Site Editor after replacing them.

The core/query Related Posts block variation was removed. Replace those blocks with the aegis/related-posts block from Aegis Dash, or use aegisProRelatedPosts on Query Loop with Aegis Pro (coming soon) for advanced related-post queries.

Without Aegis Dash, the theme’s own copy of the block and its blog-related-posts-* patterns are registered. With Aegis Dash active, the plugin provides the block and its patterns (aegis/related-posts-*). There is no separate Related Posts switch: the block is registered once at least one setting is on at Aegis → Blocks → Related Posts. See Related Posts Block.

Image Icon → core/icon

The Image Icon variation (core/image with is-style-icon) was removed. Insert the WordPress Icon block instead. IDs look like core/home or social/facebook.

Migrate leftover Image icons and legacy aegis/{set}/{name} Icon IDs:

Copied!
Shell
wp aegis migrate-icons# WordPress Studio:studio wp aegis migrate-icons# Preview only:studio wp aegis migrate-icons --dry-run

The command updates all public post types and widget_block widgets. Review headers and patterns in the Site Editor afterward. See SVG Icons.

Update Methods

Since 1.0.1, Aegis updates itself from GitHub through the normal WordPress update screens. No plugin or account is needed.

Aegis updates appear in Dashboard → Updates like any other theme.

To update:

  1. Go to Dashboard → Updates (or Appearance → Themes).
  2. Click Update now for Aegis.

Developers can point the updater at a fork or mirror with the aegis_theme_update_repository filter. See Hooks and Filters.

Copied!
PHP
add_filter( 'aegis_theme_update_repository', fn() => 'my-org/aegis-fork' );

The repository must publish releases with an aegis.zip asset.

Method 2: Manual Update via Upload

  1. Download aegis.zip from the latest Aegis release.
  2. Navigate to Appearance → Themes.
  3. Click Add New Theme and then Upload Theme.
  4. Select the downloaded .zip file.
  5. Click Install Now.
  6. When prompted, choose Replace current with uploaded to overwrite the existing installation.
  7. Click Activate if the theme was deactivated during the process.

Method 3: Manual Update via FTP

  1. Download and extract aegis.zip from the latest release.
  2. Connect to your server via FTP.
  3. Navigate to wp-content/themes/.
  4. Rename the existing aegis folder to aegis-backup (as a safety measure).
  5. Upload the new aegis folder.
  6. Verify the site works correctly.
  7. Delete the aegis-backup folder once confirmed.

Method 4: Using Git (Development)

If you installed Aegis via Git:

Copied!
Shell
cd wp-content/themes/aegisgit fetch origingit checkout maingit pull origin maincomposer install --no-devnpm installnpm run build

Method 5: Using Composer

If you manage Aegis through Composer:

Copied!
Shell
composer update aegiswp/aegis

Updating Aegis plugins

When updating the theme, you should also check for updates to Aegis plugins:

PluginUpdate Location
Aegis Dash (free)Plugins → Installed Plugins. Install it from the theme’s admin notice, which downloads the latest Aegis Dash release
Aegis ProComing soon

Always update the theme and plugins together to ensure compatibility.

Version Compatibility

Aegis follows semantic versioning (SemVer):

Version ChangeMeaningAction Required
Patch (1.0.x)Bug fixes, no breaking changesSafe to update immediately
Minor (1.x.0)New features, backwards compatibleReview new features, safe to update
Major (x.0.0)Breaking changes possibleRead migration guide before updating

What Gets Preserved During Updates

The following customizations are preserved when you update:

What May Be Overwritten

The following are overwritten during an update:

Note

If you have modified theme files directly (not recommended), those changes will be lost during an update. Always use child themes or the Site Editor for customizations.

Troubleshooting Updates

Update Failed

If an update fails:

  1. Check file permissions on the wp-content/themes/ directory.
  2. Ensure sufficient disk space is available.
  3. Check the PHP error log for specific error messages.
  4. Try the manual upload or FTP method as a fallback.
  5. If Update now never appears, the site may not reach api.github.com. Check outgoing HTTP requests in Tools → Site Health.

Site Broken After Update

If your site does not work correctly after updating:

  1. Clear all caches (browser, plugin, server).
  2. Deactivate and reactivate the theme.
  3. Check Tools → Site Health for any reported issues.
  4. If the issue persists, restore your backup and report the issue through Getting Support.

Rolling Back

To revert to a previous version:

  1. Download the aegis.zip of the previous release.
  2. Follow the manual update process (Method 2 or Method 3) using the older version file.

Staying Informed

To be notified of new releases:

Next Steps

Theme Inventory

Scope is the theme directory, including the framework bundled in vendor/aegis/. Companion-plugin and Pro features are named only where a boundary matters, so they are not written up as theme features.

Left out on purpose: Map, Modal, analytics, conditional logic, the plugin Integrations screen, plugin-registered WooCommerce block patterns, and Pro blocks.

Positioning

ThemeAegis
AuthorAtmostfear Entertainment
Version1.0.2
Requires WordPress7.0
Tested up to7.1.4
Requires PHP8.1
LicenseGPL-2.0-or-later
Text domainaegis

The stylesheet header describes Aegis as a native block framework: full-site editing, fluid typography, and a strict standards-based base for child themes. That same header says the theme loads zero CSS, JavaScript, or font assets by default.

What the theme actually ships is a bit more specific. Three variable fonts are bundled and declared in theme.json (Lexend, Lexend Deca, and JetBrains), so they are not loaded from Google Fonts. The framework loads its CSS and JavaScript only when a block on the page needs them. style.css still contains a few rules of its own: linked-heading hover color, hidden gravatar captions, wide and full alignment inside post content, and payment-icon layout.

readme.txt is the public summary: a token-based block theme with color, type, and spacing scales, compiled custom blocks, a large pattern library, WooCommerce templates, dark and light mode, RTL, and an accessibility-ready foundation. This inventory counts the files: 50 templates and 230 patterns.

Directory tags in style.css: accessibility-ready, block-patterns, block-styles, blog, custom-colors, custom-logo, custom-menu, e-commerce, editor-style, featured-images, footer-widgets, full-site-editing, full-width-template, grid-layout, one-column, portfolio, rtl-language-support, sticky-post, style-variations, template-editing, threaded-comments, three-columns, translation-ready, two-columns, wide-blocks.

Design system

Tokens live in theme.json (schema version 3, title “Light”). Values below are the theme defaults, not every hex.

Editor settings

Layout

PresetValue
Content widthmin(calc(100% - var(--wp--preset--spacing--lg,3rem) * 2), 720px)
Wide widthmin(calc(100% - var(--wp--preset--spacing--lg,3rem) * 2), 1200px)

The wide size in theme.json is 1200px. Older copy that says 1620px or 1152px is out of date.

On phones, full-width blocks inside main.site-main.has-global-padding cancel the root padding with negative margins (style.css), so nested full-width groups no longer stack extra padding.

Color

40 palette entries (includes transparent).

FamilySteps
Primary12, including 25 through 950
Neutral12, including 0 through 950
Success3: 100, 500, 600
Info3: 100, 500, 600
Warning3: 100, 500, 600
Error3: 100, 500, 600
UtilityTransparent, Current, Inherit, Shadow

Default page background is Neutral 0 (#ffffff). Default text is Neutral 700. Body type is Lexend at 16px, normal weight, line-height 1.6. Block gap is the S spacing preset. Root horizontal padding is the L spacing preset.

10 duotones: Primary Dark/Light, Primary Dark/Mid, Neutral Dark/Light, Neutral Dark/Warm, Success Dark/Light, Success Dark/Bright, Warning Dark/Light, Warning Dark/Bright, Error Dark/Light, Error Dark/Bright.

31 gradients: Primary 700/500, Primary 500/300, Primary Transparent, Primary Foreground, Body/Heading, Surface/Border, Background/Transparent, Transparent/Background, Fade Left, Fade Right, Checkerboard, Grid, Diagonal Cut Dark Left, Diagonal Cut Dark Right, Diagonal Cut Light Left, Diagonal Cut Light Right, Fade Dark Top, Fade Dark Bottom, Long Top Short Bottom, Short Top Long Bottom, Vignette Vertical, Vignette Radial, Diagonal Vignette, Scrim Bottom, Scrim Top, Diagonal Triple, Layered Bands, Spotlight Bottom Left, Spotlight Top Right, Cinematic Bars, Diagonal Stripes.

Typography

27 fluid font-size presets, plus Inherit: 96, 88, 80, 72, 64, 60, 56, 52, 48, 44, 42, 40, 36, 32, 28, 24, 22, 20, 18, 16, 15, 14, 13, 12, 11, 10, 8. The slug is the number (--wp--preset--font-size--44). Each one is a clamp() between a mobile minimum and the named size, so large sizes shrink on phones (for example, 96 starts at 56px).

FamilySlugFace
LexendlexendVariable, weight 300–900, assets/fonts/lexend.woff2
Lexend Decalexend-decaVariable, weight 300–900, assets/fonts/lexend-deca.woff2, falls back to Lexend
JetBrains (JetBrains Mono)jetbrainsVariable, weight 100–900, in assets/fonts/

Custom font-weight tokens run from thin (100) through black (900).

Element defaults cover button (Primary 900 background, Neutral 0 text, semibold 14px, 6px radius, hover to Primary 800), text inputs, caption, heading, h1–h6, and link.

Block style defaults in theme.json cover audio, avatar, buttons, breadcrumbs, button, code, column, columns, comment author avatar, post excerpt, cover, footnotes, html, image, list, navigation, page list, post author, post content, post date, post featured image, post template, post terms, preformatted, pullquote, quote, search, separator, site logo, site title, social links, template part, text columns, verse, and video.

Spacing

11 steps. XXXS 4px, XXS 8px, 2XS 12px, and XS 16px are fixed. The rest are fluid clamp() values: S 20–24px, M 24–32px, ML 24–40px, L 24–48px, XL 40–64px, XLL 48–80px, XXL 56–96px.

Shadows

Eight presets: None, XX Small, X Small, Small, Medium, Large, X Large, XX Large. They use a shared shadow color token.

Other custom tokens

Style variations

60 variations in styles/. Each file sets title to the name below. Mood notes are the theme’s own labels from the style-variation reference. Every variation keeps its own dark mapping when dark mode is on.

A selection of the 60 Aegis style variations.

VariationCharacter
AmberEnergetic, warm
AmethystLuxurious, mystical
ArcticClean, cool
AutumnWarm, seasonal
BlossomGentle, feminine
CanaryCheerful, attention-grabbing
CharcoalSerious, professional
CopperIndustrial, warm
CoralVibrant, playful
CrimsonBold, powerful
DesertEarthy, natural
DuskEvening, atmospheric
EarthGrounded, organic
EmeraldRich, prestigious
FlamingoFun, creative
ForestNatural, serene
FuchsiaVivid, expressive
GildedPremium, luxurious
GrayscaleMinimal, typographic
GroveNatural, growth
IndigoDeep, trustworthy
IvoryElegant, clean
LagoonRefreshing, tropical
LavenderCalming, gentle
LimeEnergetic, fresh
LinenSoft, comfortable
MarigoldBright, optimistic
MidnightDramatic, sleek
MistSubtle, airy
MossUnderstated, natural
NeonBold, modern
NeutralVersatile, quiet
ObsidianDramatic, high-contrast
OceanProfessional, trustworthy
OrchidExotic, creative
ParchmentVintage, literary
PeachWarm, approachable
PewterCool, professional
PlumRich, sophisticated
RaspberryBold, spirited
RoseRomantic, soft
RusticAuthentic, handcrafted
SageCalm, wise
SandNeutral, coastal
SapphirePremium, deep
SepiaVintage, nostalgic
SkyOpen, friendly
SlateProfessional, modern
SteelStrong, utilitarian
StoneSolid, dependable
SunflowerHappy, vibrant
TangerineEnergetic, warm
TeaRefined, peaceful
TealBalanced, modern
TerracottaWarm, artisanal
VintageRetro, eclectic
VioletCreative, regal
WalnutWarm, refined
WineElegant, mature
ZincDefault, neutral

Midnight, Obsidian, and Zinc use a dark default background (primary-950).

Templates

50 HTML templates in templates/. Titles below are the Site Editor names from theme.json where the theme defines one. Hierarchy templates that WordPress provides by filename are named from that role.

Template parts, in parts/: Header (header), Footer (footer), Sidebar (sidebar).

Site

TemplateFileRole
Indexindex.htmlFallback loop
Front Pagefront-page.htmlStatic front page
Blog Homehome.htmlPosts page
Pagepage.htmlDefault page. Also used for bbPress forum views when that integration is active
Singlesingle.htmlDefault post
Archivearchive.htmlGeneric archives
Authorauthor.htmlAuthor archives
Author: Guestauthor-guest.htmlGuest author archives
Datedate.htmlDate archives
Searchsearch.htmlSearch results
404404.htmlNot found

Page and post layouts

TemplateFileAssignable to
Blankblank.htmlPage, post. No header or footer
Full Widthfull-width.htmlPage, post
Page (No Title)page-no-title.htmlPage, post
Page: Boxedpage-boxed.htmlPage, post
Page: Hero Minimalpage-hero-minimal.htmlPage
Page: Contactpage-contact.htmlPage
Page: Landingpage-landing.htmlPage
Page: With Sidebarpage-with-sidebar.htmlPage, post
Single: Full Widthsingle-full-width.htmlPost
Single: No Featured Imagesingle-no-featured-image.htmlPost
Coming Sooncoming-soon.htmlPage
Page: Coming Soonpage-coming-soon.htmlPage
Maintenancemaintenance.htmlPage

Content archives

TemplateFile
Category Archivestaxonomy-category.html
Category: Bookstaxonomy-category-books.html
Category: Eventstaxonomy-category-events.html
Category: Podcaststaxonomy-category-podcasts.html
Category: Portfoliotaxonomy-category-portfolio.html
Category: Recipestaxonomy-category-recipes.html
Category: Videotaxonomy-category-video.html
Tag Archivestaxonomy-post_tag.html
Tag: Featuredtaxonomy-post_tag-featured.html

Shop

These files are in the theme. They apply when WooCommerce is active, and the framework hides them from the template picker when WooCommerce is inactive. Wishlist also expects the TI WooCommerce Wishlist plugin and Aegis Dash’s wishlist pattern. The multi-step checkout template is the theme’s; extra checkout assets from Aegis Dash load only when that integration is on.

TemplateFile
Archive: Productarchive-product.html
Single item: Productsingle-product.html
Single Product: Landingsingle-product-landing.html
Product Search Resultsproduct-search-results.html
Search: Productsearch-product.html
Taxonomy Product Categorytaxonomy-product_cat.html
Taxonomy Product Tagtaxonomy-product_tag.html
Product Attributetaxonomy-product_attribute.html
Product Category: Clothingtaxonomy-product_cat-clothing.html
Product Category: Digitaltaxonomy-product_cat-digital.html
Product Category: Outlettaxonomy-product_cat-outlet.html
Page: Cartpage-cart.html
Page: Checkoutpage-checkout.html
Page: Checkout Multi-Steppage-checkout-multi-step.html
Order Confirmationorder-confirmation.html
Page: My Accountpage-my-account.html
Page: Wishlistpage-wishlist.html

Shop styling that also ships in the theme framework, and applies with WooCommerce: breadcrumb styling (including the Store Breadcrumb delimiter), the sale badge, and the product-gallery lightbox. WooCommerce block patterns that use wp:woocommerce/* are registered by Aegis Dash, not by these theme files.

Patterns

patterns/ contains 230 registered patterns in 28 folders. The registrar loads *.php in each folder and skips files whose names start with a dot. 52 files set Inserter: false: all 48 in template, the 3 in hidden, and utility/patterns.php. Patterns in the hidden category are also kept out of the inserter by the pattern loader. Modal starters are owned by Aegis Dash, not this tree.

Inserter category labels match the folder name, with cta and faq shown as CTA and FAQ. Registered slugs are the category plus the file’s Slug header, for example hero-split. The full slug list is in the Pattern Reference.

about (3)

PatternDescription
About Founder StoryA founder story section with image and narrative text.
About Mission VisionA two-column mission and vision section with large text.
About Values GridA grid of company core values with icons and descriptions.

author (6)

PatternDescription
Author Archive with SidebarAn author archive with a sticky sidebar containing author details and a post list.
Author ArchiveA full-width author archive with avatar header and three-column post grid.
Author Biography CardA compact author card with avatar, name, role, short bio, and social links.
Author Biography HorizontalA slim horizontal author strip with avatar, name, bio, and social links in a single row.
Author BiographyA centered author biography section with large avatar, bio text, and social links.
List with AuthorA horizontal list layout with author information.

blog (16)

PatternDescription
Blog FeedBlog section with featured article, latest articles list, and newsletter signup.
Featured PostA highlighted featured post layout.
Featured PostsA grid of featured blog posts.
Grid BoxedA boxed grid layout for blog posts.
Grid CompactA compact grid with small thumbnails and titles.
Grid MasonryA masonry-style grid with alternating post sizes.
Latest PostsA section displaying the latest blog posts.
MinimalA clean, text-focused minimal blog layout.
Related Posts: CardsBoxed cards of related posts with surface background and shadow.
Related Posts: GridA 3-column grid of related posts with featured image, date, category, title, and excerpt.
Related Posts: ListA horizontal list of related posts with small thumbnails, titles, and dates.
Related Posts: MinimalA text-only list of related posts with border separators.
Single Blog CardA single blog post card layout.
Single ColumnA single column blog post list.
Three Column BlogA three-column blog post grid with pagination.
Two Column FeaturedTwo column layout with featured post and sidebar list.

commerce (8)

PatternDescription
Money-Back GuaranteeA money-back guarantee section with SVG icon, heading, and description.
Payment IconsAccepted payment method icons that inherit dark/light (payment/*-outline mono-outline marks).
Product ComparisonA side-by-side product comparison table pattern for comparing product features.
Product ReviewsA standalone product reviews section with star rating summary and individual review cards.
Recently Viewed ProductsA section displaying recently viewed products using a product collection grid.
Shipping InformationA shipping policy and information section with SVG icons for delivery times, return policy, and international shipping.
Size GuideAn expandable size guide table pattern for apparel and clothing stores.
Trust BadgesA row of inline SVG trust icons for secure checkout, money-back guarantee, free shipping, and 24/7 support.

contact (3)

PatternDescription
Form BoxedA boxed contact form layout.
Contact IconsContact information with icons.
Contact Two ColumnA two-column contact section with form and info.

Contact Form Map and Contact Form Map Overlay ship in Aegis Dash (aegis/form-map, aegis/form-map-overlay) when the Map block is enabled.

cta (7)

PatternDescription
Feature BannerA scrolling banner for announcements or promotions.
BoxA boxed call-to-action section.
Commerce Free Shipping CTAA slim announcement bar CTA promoting free shipping with a threshold and shop link.
Commerce Newsletter CTAA newsletter signup CTA with discount incentive for store visitors.
Commerce Sale CTAA bold sale banner CTA with countdown urgency, discount code, and shop button.
HorizontalA horizontal call-to-action section.
Newsletter CTAA newsletter subscription call-to-action section.

event (28)

PatternDescription
Cinema AboutAn about section for a film with description and stat cards for ratings, awards, and format.
Cinema Cast & CrewA dark section showcasing cast and crew members with circular avatars.
Cinema CTAA dark call-to-action section for a cinema premiere with ticket button.
Cinema HeroA dark cover hero section for a cinema screening or film premiere with poster, details, and CTA buttons.
Conference CTAA dark call-to-action section for conference registration with early bird pricing.
Conference HeroA dark hero section for a tech conference with stats and CTA buttons.
Conference SpeakersA keynote speakers section with avatar cards showing name, role, and bio.
Conference TracksA conference tracks section with bordered cards showing track names and descriptions.
Conference VenueA venue and travel section with image and location details including hotel partners.
Exhibition AboutAn about section for an exhibition with curator statement and exhibition details.
Exhibition ArtistsA featured artists section with cards showing artist name, medium, and description.
Exhibition GalleryA gallery grid section showcasing exhibition artwork with captions.
Exhibition HeroA cover hero section for an art exhibition with dates, description, and CTA buttons.
Exhibition InfoAn information section with museum hours, location, and contact details.
Exhibition ToursA guided tours section with tour options showing times, descriptions, and booking buttons.
Music Festival HeroA vibrant cover hero section for a music festival with date, description, and CTA buttons.
Music Festival InfoAn essential information section for a music festival with practical details.
Music Festival LineupA lineup section for a music festival organized by day with headliners and supporting acts.
Music Festival PassesA festival passes pricing section with tiered options and features.
Talk HeroA dark hero section for a talk or lecture with speaker details and CTA buttons.
Talk SeriesAn upcoming lecture series section with event cards showing dates and topics.
Talk SpeakerAn about the speaker section with image, bio, and credentials.
Talk TopicsA what you will learn section with topic cards for a talk or lecture.
Workshop CTAA dark call-to-action section for workshop enrollment with included items list.
Workshop GalleryA gallery section showcasing student work and workshop moments.
Workshop HeroA cover hero section for a workshop with instructor, date, and CTA buttons.
Workshop InstructorAn instructor profile section with image, bio, and credentials.
Workshop ScheduleA two-day workshop schedule with session times and descriptions.

faq (3)

PatternDescription
Accordion With SidebarA wide accordion FAQ section.
AccordionAn accordion FAQ section.
FAQsA frequently asked questions section.
PatternDescription
Feature AlternatingAlternating feature sections with images and text.
Feature Grid IconsA grid of features with icons and descriptions.
Feature Icon BoxesA grid of icon boxes showcasing features or services.
ImageA feature section with image and content.
Feature Images Two ColumnA two-column feature section with staggered images.
PatternDescription
CenteredA centered footer with logo and copyright.
Footer Default—
MinimalA minimal footer layout.
Store Footer DefaultA full store footer with shop links, customer service links, payment icons, and newsletter signup.
Store Footer MinimalA minimal store footer with copyright, privacy/terms links, and payment icons — ideal for checkout and funnel pages.
WideA wide footer with multiple columns.

header (6)

PatternDescription
Center LogoA header with centered logo and navigation.
Header Center MenuA header with centered menu navigation.
Header Default—
Menu LeftA header with left-aligned menu.
Store Header DefaultA full store header with logo, shop navigation, search, customer account, and mini-cart.
Store Header MinimalA minimal store header with logo and secure checkout badge — ideal for checkout and funnel pages.

hero (7)

PatternDescription
Hero ArchiveA hero section for archive pages.
Hero Centered DarkA dark centered hero with gradient background.
Hero CoverA full-screen hero cover section.
Hero Image BelowA hero section with image below content.
Hero MinimalA minimal hero with subheading, title, and short intro text.
Hero SplitA split hero section with text and image side by side.
Hero VideoA hero section with video background placeholder.

hidden (3)

PatternDescription
Page 404A 404 error page layout. Not shown in the inserter.
404 IllustratedA 404 error page with a large illustration area and search prompt. Not shown in the inserter.
404 MinimalA minimal 404 error page with heading and navigation link. Not shown in the inserter.

logos (3)

PatternDescription
As Seen InAn “as seen in” press bar with publication logos.
Logo GridA grid of client or partner logos with a heading.
Logo RowA single row of logos with a centered label above.

newsletter (3)

PatternDescription
Newsletter BannerA full-width dark newsletter banner with centered content.
Newsletter InlineA compact inline newsletter signup with input and button side by side.
Newsletter SplitA split layout with content on one side and newsletter signup on the other.

notice (16)

PatternDescription
Affiliate DisclaimerA standard FTC-style affiliate earnings disclosure notice with an info icon.
Beta DisclaimerA compact beta or experimental feature disclaimer tag.
Earnings DisclaimerAn earnings and income disclaimer for digital products, courses, and business opportunities.
Editorial Independence DisclaimerA centered editorial independence and journalistic integrity statement.
Financial DisclaimerAn investment and financial information disclaimer with a currency icon.
Legal DisclaimerA formal general-purpose legal and liability disclaimer with a separator line.
Medical DisclaimerA prominent medical disclaimer warning that content is not professional health advice.
Sponsored Content DisclaimerA compact inline disclosure for sponsored or paid partnership content.
Testimonial DisclaimerA full-width results-not-typical disclosure for testimonials and case studies.
Age Verification NoticeAn age verification gate notice with a lock icon and confirmation button.
Error NoticeA critical error notice box with a red background and error icon.
Geographic Restriction NoticeA geographic restriction notice for region-blocked content.
Info NoticeA general informational notice box with an info icon.
Success NoticeA success notice box with a green background and check icon.
Under ConstructionA centered under-construction or maintenance placeholder notice.
Warning NoticeA warning notice box with an amber background and warning icon.

pages (20)

PatternDescription
About PageA complete about page layout with hero, story, team, and values.
Blog PageA complete blog page with featured post and grid layout.
Cinema EventA full page layout for a cinema screening or film premiere event.
Conference EventA professional full page layout for a tech conference or summit.
Contact PageA complete contact page with form, map, and contact details.
Exhibition EventA minimal and elegant full page layout for an art exhibition or gallery event.
Funnel Sales PageA long-form sales page with problem/solution framing, feature highlights, testimonials, FAQ, guarantee, and CTA — uses minimal header/footer.
Funnel Squeeze PageA high-conversion squeeze page with headline, benefit bullets, and email capture form — uses minimal header/footer.
Funnel Thank You PageA post-purchase thank you page with order confirmation message, next steps, upsell product grid, and social sharing — uses minimal header/footer.
Page Home—
Landing PageA full landing page with hero, features, social proof, testimonials, contact form, and closing CTA.
Music FestivalA vibrant full page layout for a music festival or concert event.
Portfolio PageA complete portfolio page showcasing projects and work.
Product Landing Page (Dynamic)A dynamic product landing page using WooCommerce product collections, featured products, on-sale grid, and category browsing.
Product Landing Page (Static)A static product landing page with hero, features, testimonials, trust badges, and CTA — ideal for a single flagship product.
Services PageA complete services page layout showcasing offerings.
Shop Full WidthA full-width shop page with top-bar filters and a wide product grid without sidebar.
Shop PageA complete shop landing page for e-commerce sites.
Talk & Lecture EventA focused full page layout for a single talk, lecture, or keynote presentation.
Workshop EventA full page layout for a hands-on workshop or training event.

portfolio (3)

PatternDescription
Portfolio Image Gallery GridA grid-based image gallery for portfolios.
Portfolio Image GalleryAn image gallery for portfolio showcases.
Project ShowcaseA detailed project showcase layout.

pricing (4)

PatternDescription
Pricing Comparison TableA feature comparison table across multiple pricing plans.
Pricing Single HighlightA single highlighted pricing card with feature list and CTA.
Pricing Three ColumnA three-column pricing table.
Pricing Two ColumnA two-column pricing comparison layout.

product (3)

PatternDescription
Product Category GridProduct category cards with images, titles, and product counts.
Featured Product GridA three-column featured products grid with sale badges, ratings, and Add to Cart buttons.
On Sale ProductsOn-sale products grid filtered to show only discounted items.
PatternDescription
Sidebar DefaultA complete blog sidebar with author bio, search, recent posts, categories, archives, calendar, tags, and social links.

slider (6)

PatternDescription
Books SliderA full-width book slider with cover image on the left and title, description, and CTAs on the right.
Features SliderA features carousel displaying service cards with icons and descriptions.
Hero SliderA full-width hero slider with call-to-action buttons.
Portfolio CarouselA multi-slide portfolio carousel showcasing projects with hover overlays.
Team CarouselA team members carousel with profile photos and social links.
Testimonials SliderA testimonials carousel with customer reviews, avatars, and star ratings.

stats (4)

PatternDescription
Stats Four ColumnsA four-column statistics section.
Stats Progress BarsA stats section with labeled progress bars showing skill or completion percentages.
Stats Three Columns DarkA dark three-column statistics section.
Stats Two Column IconsA two-column stats section with icons and descriptions.

team (4)

PatternDescription
Team Cards SocialTeam member cards with photos, roles, bios, and social links.
Team Grid SimpleA simple grid layout for team members.
Team MembersA team members section.
Team SpotlightA single team member spotlight with large photo and detailed bio.

template (48)

PatternDescription
Template 404Not shown in the inserter.
Archive ProductNot shown in the inserter.
Template ArchiveNot shown in the inserter.
Author GuestNot shown in the inserter.
Template AuthorNot shown in the inserter.
BlankMinimal page shell with skip link and main landmark. Authors should supply exactly one h1 in post content. Not shown in the inserter.
Coming SoonNot shown in the inserter.
Template DateNot shown in the inserter.
Front PageNot shown in the inserter.
Full WidthNot shown in the inserter.
Blog HomeNot shown in the inserter.
MaintenanceNot shown in the inserter.
Order ConfirmationNot shown in the inserter.
Page BoxedNot shown in the inserter.
Page CartNot shown in the inserter.
Page Checkout Multi-StepNot shown in the inserter.
Page CheckoutNot shown in the inserter.
Page Coming SoonNot shown in the inserter.
Page ContactNot shown in the inserter.
Page Hero MinimalNot shown in the inserter.
Page LandingNot shown in the inserter.
Page My AccountNot shown in the inserter.
Page No TitlePage template without an automatic title. Authors must supply exactly one h1 heading in the page content. Not shown in the inserter.
Page WishlistNot shown in the inserter.
Page With SidebarNot shown in the inserter.
Template PageNot shown in the inserter.
Search ProductNot shown in the inserter.
Template SearchNot shown in the inserter.
Single Full WidthNot shown in the inserter.
Single No Featured ImageNot shown in the inserter.
Single Product LandingNot shown in the inserter.
Single ProductNot shown in the inserter.
Template SingleNot shown in the inserter.
Category BooksNot shown in the inserter.
Category EventsNot shown in the inserter.
Category PodcastsNot shown in the inserter.
Category PortfolioNot shown in the inserter.
Category RecipesNot shown in the inserter.
Category VideoNot shown in the inserter.
Category ArchiveNot shown in the inserter.
Tag FeaturedNot shown in the inserter.
Tag ArchiveNot shown in the inserter.
Product AttributeNot shown in the inserter.
Product Category ClothingNot shown in the inserter.
Product Category DigitalNot shown in the inserter.
Product Category OutletNot shown in the inserter.
Taxonomy Product CategoryNot shown in the inserter.
Taxonomy Product TagNot shown in the inserter.

testimonial (4)

PatternDescription
Testimonial Cards GridA grid of testimonial cards with ratings.
Testimonial Quote LargeA large centered testimonial quote.
Testimonial SingleA single testimonial quote.
Testimonial Three ColumnA three-column testimonial section.

timeline (3)

PatternDescription
Timeline HorizontalA horizontal timeline with numbered step cards.
Timeline StackedA minimal stacked timeline with left border accent and date labels.
Timeline VerticalA classic vertical timeline with alternating left and right entries.

utility (6)

PatternDescription
Color Palette—
Utility Dark Mode Toggle—
Gradients—
PatternsNot shown in the inserter.
Skip to ContentAccessibility link that allows keyboard users to skip navigation and jump directly to main content.
Utility Search Toggle—

Block copies in the theme

These six blocks are provided by Aegis Dash 1.1.0 and newer. Theme 1.1.0 still contains a copy in src/Blocks/ and registers it only while Aegis Dash is not providing the block, so they keep working without the plugin for now. A later theme release removes the copies.

BlockNameWhat it is
Countdownaegis/countdownTimer to a date and time, with segments, labels, and expiry behavior
Slideraegis/sliderCarousel with layout and navigation options
Slideaegis/slideOne slide. Only inside Slider
Toggleaegis/toggleTwo-view content switcher. For FAQs, use Accordion List instead
Toggle Contentaegis/toggle-contentPrimary or secondary view inside Toggle
Related Postsaegis/related-postsPosts related by shared terms, with layout variants and a fallback

Video is WordPress core/video, styled by the theme. There is no aegis/video block.

Related Posts query arguments can be changed with the aegis_related_posts_query filter.

Block variations

Registered by the bundled framework on core blocks:

VariationBase blockWhat it is
Accordion Listcore/listExpand and collapse list items. Style is-style-accordion
Countercore/paragraphNumber that counts up when it scrolls into view
Curved Textcore/paragraphText along a curved path
Gridcore/groupCSS grid container
Marqueecore/groupHorizontal ticker
Newslettercore/searchSearch form styled as an email signup (is-style-newsletter)
SVGcore/imageInline SVG on an Image block (is-style-svg), for logos and wordmarks

Decorative icons use the Icon block, not the SVG image variation.

The Aegis Dash can turn variations off at Aegis → Blocks. That screen is not part of the theme.

Block styles

Styles the framework registers for the editor:

BlockStyles
Archive titleSub-heading
ButtonsSurface
ButtonGhost
CodeSurface, Light, Dark
ColumnsSurface, Light, Dark
ColumnSurface, Light, Dark
Comment author nameHeading
DetailsHeading (summary)
GroupSurface, Light, Dark
ListChecklist, Check outline, Check circle, Square, List heading, Dash, None
List itemSurface
NavigationHeading
Page listNone
ParagraphSub-heading, Notice, Heading
Post author nameHeading
Post termsList, Sub-heading, Badges
Post titleSub-heading
Query paginationBadges
Read moreButton
Site titleHeading
SpacerAngle, Curve, Round, Wave, Fade
Tag cloudBadges
QuoteSurface

The framework also removes the core Rounded and Default styles from Image and Site Logo, and the Wide and Dots styles from Separator.

Navigation overlay styles, registered separately:

StyleBehavior
Slide-inDrawer from the right
Slide-in LeftDrawer from the left
FullscreenFull-viewport overlay
ScrollOverlay that slides down from the top

Inspector controls

Extra block controls from the framework. Names only. Plugin toggles that disable them are out of scope.

ControlWhat it adds
Additional stylesCustom CSS on a block. Saved by a user without the unfiltered_html capability, only the CSS properties WordPress allows in post content are kept
AnimationMotion, with CSS and script loaded when used
Backdrop blurBackdrop-filter blur
Box shadowShadow beyond the eight presets
Text shadowShadow on text
CSS filtersFilter effects
TransformCSS transforms
OpacityOpacity control
ResponsiveBreakpoint layout, including visibility and positioning
VisibilityServer-side show and hide from a visibility attribute
SubheadingSub-heading treatment, including gradient clip
Template tagsReplacements in block content, including reading time at 200 words per minute (aegis_words_per_minute). {field} tags print public post fields only (aegis_template_tag_post_fields) and custom fields that do not start with _. Nothing is printed for password-protected posts or posts the visitor cannot read
Query layoutResponsive layout on Query
Query enhancementsExtra query parameters
Query no resultsCustom empty state for Query
ImageImage inspector options such as aspect ratio, height, object-fit, and object-position
Inline colorInline color
Inline SVGInline SVG rendering
Copy to clipboardCopy control on code
OnclickClick action and template-tag replacement. Kept only when the user who saves the content has the unfiltered_html capability
PlaceholderPlaceholder content when a block is empty

Icons

The theme registers icon collections on the WordPress Icon block (core/icon). Fills use currentColor, so icons follow the surrounding text in light and dark mode.

CollectionIconsWhere it lives
Social44vendor/aegis/icons
WordPress214vendor/aegis/icons
Payment32vendor/aegis/icons/public/icons/payment (mono + *-outline mono-outline marks, Apache-2.0)

Payment icons come from svg-credit-card-payment-icons (mono / monoOutline, Apache-2.0 / MIT). Store footers and the Payment Icons pattern use payment/{name}-outline. Fills and strokes use currentColor for light and dark mode. Core already ships its own core collection; Aegis does not duplicate those glyphs.

The theme does not allow SVG uploads. SVG icons and images come from files that ship with the theme or plugins.

Dark mode

Dark mode is a class, not a separate theme.

Color-scheme conditionals in the plugin admin are not a theme feature.

Accessibility and performance

Other theme behavior

style.css rules worth knowing when writing about the front end:

Core blocks the framework styles

These 37 core blocks have theme framework classes. Image also gets lightbox extras from ImageLightbox.php. The enhancement is styling, supports, and the controls above. Core behavior is not replaced.

Button, Buttons, Calendar, Code, Columns, Cover, Details, Group, Heading, Icon, Image, List, Navigation, Navigation submenu, Page list, Paragraph, Post author, Post comments form, Post content, Post date, Post excerpt, Post featured image, Post template, Post terms, Post title, Query, Query pagination, Query title, Search, Shortcode, Social link, Social links, Spacer, Table of contents, Tag cloud, Template part, Video.

Notable pieces a post can name without going into plugin extras:

Third-party styling that ships in the theme

Stylesheets in the bundled framework. They apply when that plugin is present. This list is names only. It does not describe those plugins, and it does not describe Aegis Dash’s Integrations screen.

WooCommerce, Easy Digital Downloads, AffiliateWP, Fluent Forms, Fluent Booking, Gravity Forms, Ninja Forms, LearnDash, LifterLMS, Sensei, bbPress, Meta Box, Code Block Pro, Syntax Highlighting Code Block.

Co-Authors Plus is also detected for author hooks. BunnyCDN styling is tied to Aegis Dash connector, so it is not a standalone theme feature.

Developer appendix

Useful if the post mentions extensibility. Plugin admin hooks are omitted.

Injection actions fired by the framework:

Theme and framework filters a child theme is likely to use:

FilterRole
aegis_dynamic_template_part_slugSwap a template part slug at render time
aegis_related_posts_queryRelated Posts query arguments
aegis_dark_modeTurn dark mode on or off (default on)
aegis_patternsFilter the pattern list before registration
aegis_pattern_dirsAdd pattern directories
aegis_words_per_minuteReading-time speed (default 200)
aegis_system_fontsSystem font stack
aegis_load_all_scripts / aegis_load_all_stylesForce-load framework assets

Hook-pattern management (a custom post type that fills those injection points) is Aegis Pro, not the theme.

Site Editor

Accessing the Site Editor

To open the Site Editor:

  1. Log in to your WordPress admin dashboard.
  2. Navigate to Appearance → Editor.

The Site Editor opens with a full preview of your site. From here, you can edit templates, template parts, styles, patterns, and navigation.

Site Editor Interface

The main areas of the Site Editor.

Top Toolbar

ElementPurpose
WordPress iconReturn to the admin dashboard
Block inserter (+)Add blocks and patterns
Tools (cursor/pencil)Switch between select and edit modes
Undo/RedoRevert or reapply changes
List viewSee the block hierarchy
Styles iconOpen the Global Styles panel
Light/dark preview (moon or sun icon)Preview the canvas in light or dark mode. Added by Aegis 1.0.1
Save buttonPublish your changes

The left sidebar provides access to all editable components:

Each sidebar item opens a different part of your site’s design.

Editing Templates

Templates control the layout of different page types (homepage, single posts, archives, and more).

Choose a template to edit from the Templates screen.

To edit a template:

  1. Click Templates in the left sidebar.
  2. Select the template you want to modify (for example, “Single Posts”).
  3. The template opens in the editor canvas.
  4. Add, remove, or rearrange blocks as needed.
  5. Click Save to publish your changes.

See Templates for a complete list of available templates.

Editing Template Parts

Template parts are reusable sections that appear across multiple templates (such as the header and footer).

To edit a template part:

  1. Click Patterns in the left sidebar.
  2. Select Template Parts from the list.
  3. Choose the part you want to edit (Header, Footer, or Sidebar).
  4. Make your changes in the editor.
  5. Click Save to apply changes across all templates that use this part.

See Template Parts for details on the available template parts.

Working with Styles

The Styles panel controls your site-wide design settings:

  1. Click the Styles icon (half-filled circle) in the top toolbar.
  2. From here you can:
    • Browse styles — Switch between the 60 available style variations.
    • Typography — Configure fonts, sizes, and weights globally.
    • Colors — Set the site-wide color palette and element colors.
    • Layout — Adjust content width, padding, and block spacing.
    • Blocks — Configure default styles for specific block types.

See Global Styles and Style Variations for detailed instructions.

Previewing Light and Dark Mode

Aegis adds a light and dark preview toggle to the top bar of the Site Editor and the block editor. Click the moon icon to preview the canvas in dark mode, and the sun icon to switch back. The preview uses the same color remaps as the front end, so you can check patterns and templates in both modes without leaving the editor.

Preview a template in light and dark mode before saving.

See Dark Mode for details.

Adding Content with Patterns

Aegis provides 230 theme block patterns in 28 category folders (plus Aegis Dash and Pro patterns):

  1. Click the Block Inserter (+) in the top toolbar.
  2. Switch to the Patterns tab.
  3. Browse categories or use the search field.
  4. Click a pattern to insert it at the cursor position.
  5. Customize the inserted pattern as needed.

See Block Patterns for the full pattern library.

Managing Navigation

To create or edit navigation menus:

  1. Click Navigation in the left sidebar.
  2. Select an existing menu or create a new one.
  3. Add pages, links, or submenu items.
  4. Reorder items by dragging or using the block toolbar.
  5. Save your changes.

You can also edit navigation directly within the header template part by clicking on the Navigation block.

Creating Custom Templates

To create a new template:

  1. Click Templates in the left sidebar.
  2. Click the Add New Template button (+).
  3. Choose what the template applies to (a specific page, post type, or category).
  4. Build the template layout using blocks and patterns.
  5. Save the template.

Custom templates appear in the template selector when editing posts and pages.

Reverting Changes

If you want to undo changes to a template or template part:

  1. Navigate to Templates or Patterns → Template Parts.
  2. Select the item you want to revert.
  3. Open the Options menu (three dots) in the top toolbar.
  4. Click Clear customizations to restore the original version.

This reverts the template to its default state as shipped with Aegis.

Keyboard Shortcuts

ShortcutAction
Ctrl + ZUndo
Ctrl + Shift + ZRedo
Ctrl + SSave
Ctrl + Shift + ,Toggle settings sidebar
/Insert a block by name
Shift + Alt + LToggle list view

Tips for Working with the Site Editor

Limitations

The Site Editor has some limitations to be aware of:

Next Steps

Templates

Understanding Templates

In a block theme, templates are HTML files composed entirely of block markup. They live in the templates/ directory and determine the layout for specific pages or content types. WordPress automatically selects the appropriate template based on the page being viewed, following the template hierarchy.

Available Templates

The theme ships 50 template files. 40 of them are registered in theme.json as customTemplates, so they show up in the template picker for the post types they list. The full list, with files, post types, and the pattern each one loads, is in the Template Reference.

GroupTemplates
Hierarchy (10)Index, Front Page, Blog Home, Page, Single, Archive, Author, Date, Search, 404
Page and post layouts (11)Blank, Full Width, Page (No Title), Page: Boxed, Page: Hero Minimal, Page: Contact, Page: Landing, Page: With Sidebar, Single: Full Width, Single: No Featured Image, Author: Guest
Utility (3)Maintenance, Coming Soon, Page: Coming Soon
Content archives (9)Category Archives; Category: Books, Events, Podcasts, Portfolio, Recipes, Video; Tag Archives; Tag: Featured
WooCommerce (17)Archive: Product, Single item: Product, Single Product: Landing, Product Search Results, Search: Product, Taxonomy Product Category, Taxonomy Product Tag, Product Attribute, Product Category: Clothing / Digital / Outlet, Page: Cart, Page: Checkout, Page: Checkout Multi-Step, Order Confirmation, Page: My Account, Page: Wishlist

WooCommerce templates are hidden from the Site Editor template picker when WooCommerce is inactive. Page: Wishlist is also hidden unless TI WooCommerce Wishlist is active.

Each template file loads one pattern from patterns/template/ (for example template-single). To change a template’s default layout in code, edit that pattern.

Using Templates

Assigning a Template to a Page

When editing a page in the block editor:

Pick a template for a page from the Template control in the page settings.

  1. Open the Page tab in the right sidebar.
  2. Under Template, click the current template name.
  3. Select a different template from the list.
  4. Update or publish the page.

Editing a Template

To modify the structure of a template:

  1. Navigate to Appearance → Editor.
  2. Click Templates in the left sidebar.
  3. Select the template you want to edit.
  4. Add, remove, or rearrange blocks.
  5. Click Save.

Creating a Custom Template

Create a custom template from Templates → Add New Template.

  1. In the Site Editor, go to Templates.
  2. Click the + button to add a new template.
  3. Choose what the template applies to (specific page, post type, or taxonomy).
  4. Build the layout using blocks and patterns.
  5. Save the template.

Template Structure

Most Aegis templates follow a consistent structure:

Copied!
Markdown
┌─────────────────────────────────────┐│ Template Part: Header │├─────────────────────────────────────┤│ ││ Main Content Area ││ ││ (varies by template type) ││ │├─────────────────────────────────────┤│ Template Part: Footer │└─────────────────────────────────────┘

The Blank template is an exception. It has no header or footer, only a skip link and a <main> group with Post Content.

Template Hierarchy in Aegis

WordPress uses the following priority when selecting a template:

  1. Custom template assigned to a specific page or post.
  2. Specific template matching the content type (for example, single.html for posts).
  3. Archive template for listing pages.
  4. Index template as the ultimate fallback.

WooCommerce Template Details

Multi-Step Checkout

The multi-step checkout template (page-checkout-multi-step.html) splits the checkout process into distinct stages:

  1. Shipping — Customer shipping address and method selection.
  2. Payment — Payment method and billing details.
  3. Review — Order summary and confirmation.

This template requires WooCommerce to be active and Aegis → Integrations → E-commerce → WooCommerce on. Checkout CSS/JS live in Aegis Dash and load on this template (or when the page contains aegis-checkout-multi-step markup). See WooCommerce Checkout.

Product Templates

WooCommerce templates are hidden from the template list when WooCommerce is inactive. Cart, checkout, my-account, and other commerce templates use the same gating (not only product-archive templates).

Wishlist Page

The Wishlist template requires WooCommerce, the Aegis Dash, and TI WooCommerce Wishlist:

  1. Install and activate WooCommerce, the Aegis Dash, and TI WooCommerce Wishlist.
  2. Create a new page (for example, Wishlist).
  3. In the page sidebar, set Template to Wishlist (visible only when dependencies are active).
  4. Publish the page — the template loads Aegis Dash’s template-page-wishlist pattern with the [ti_wishlisttable] shortcode.
  5. Link to the page from your navigation or My Account area as needed.

See WooCommerce Integration for shortcode details and troubleshooting.

bbPress

There is no dedicated single-forum.html (or similar) template. When Aegis → Integrations → Community → bbPress is on, the framework wraps bbPress views in the Page template: locate_block_template( $template, 'page', array( 'page.php' ) ). WordPress resolves templates/page.html; the PHP fallback from bbPress theme-compat is kept. Editing Page in the Site Editor is what changes the forum chrome (header, footer, and surrounding layout).

Maintenance and Coming Soon

Aegis includes utility templates for planned outages and launch pages:

TemplateFilenameDescription
Maintenancemaintenance.htmlOn-brand maintenance page (loads template-maintenance).
Coming Sooncoming-soon.htmlSite-wide coming soon layout.
Page Coming Soonpage-coming-soon.htmlPage-assigned coming soon layout.

Forcing the Maintenance template for logged-out visitors requires a small template_include hook, added through a plugin such as an Aegis Code Snippets snippet. See Maintenance Mode for the full advanced how-to and code snippets.

Customization Tips

Next Steps

Template Parts

Understanding Template Parts

In a block theme, template parts function like building blocks for templates. Rather than repeating the same header or footer markup in every template file, you define it once as a template part and reference it from any template that needs it.

Template parts are stored in the parts/ directory of the theme and are editable through the Site Editor.

Available Template Parts

PartFilenameDescription
Headerparts/header.htmlThe site header containing logo, navigation, and utility elements.
Footerparts/footer.htmlThe site footer containing copyright, links, and secondary navigation.
Sidebarparts/sidebar.htmlAn optional sidebar for supplementary content and widgets.

The default Aegis header includes:

Header Position

The header scrolls with the page. It has an opaque background, so content never shows through it if you make it sticky.

The behavior comes from settings.custom.header in theme.json:

KeyDefaultCSS variable
positionrelative--wp--custom--header--position
top0px--wp--custom--header--top
zIndex100--wp--custom--header--z-index
backgroundvar(--wp--preset--color--neutral-0)--wp--custom--header--background
scrollPadding0px--wp--custom--header--scroll-padding

Note

Changed in 1.0.2. Aegis 1.0.1 made the header sticky by default. Version 1.0.2 restored the scrolling header.

Make the Header Sticky

Add this to Styles → Additional CSS in the Site Editor. It survives theme updates:

Copied!
CSS
body { --wp--custom--header--position: sticky; --wp--custom--header--top: var(--wp-admin--admin-bar--height, 0px); --wp--custom--header--scroll-padding: 5rem;}

On desktop the sticky header sits just below the WordPress admin bar when you are logged in. On phones (600px and narrower) it sticks to the very top, because the admin bar scrolls away there. scrollPadding keeps in-page links and keyboard focus from landing under the header; raise it if your header is taller than 80px.

A header given its own position in the block settings (a has-position-* class) keeps that setting instead.

Editing the Header

Edit the header from Patterns → Template parts → Header.

  1. Navigate to Appearance → Editor.
  2. Click Patterns in the left sidebar.
  3. Select Template Parts.
  4. Click Header to open it in the editor.
  5. Make your changes and click Save.

Common Header Customizations

TaskInstructions
Change the logoClick the Site Logo block and replace the image.
Edit navigation itemsClick the Navigation block and use the toolbar to add or remove items.
Hide the search iconSelect the Search block and remove it.
Change the Contact linkSelect the Contact button and edit its link.
Add a CTA buttonInsert a Buttons block after the Navigation block.
Change header widthSelect the outer Group block and adjust alignment (wide or full).

The default Aegis footer includes:

The footer template part in the Site Editor.

  1. Navigate to Appearance → Editor.
  2. Click Patterns in the left sidebar.
  3. Select Template Parts.
  4. Click Footer to open it in the editor.
  5. Make your changes and click Save.
TaskInstructions
Update copyright textEdit the Paragraph block containing the copyright notice.
Add social linksInsert a Social Icons block and configure your profiles.
Change column countAdjust the Columns block layout (2, 3, or 4 columns).
Add a newsletter formInsert a newsletter pattern from the Newsletter category.

A Navigation block with no menu assigned normally falls back to a list of every published page. On sites with many pages (or with bbPress forums), that fallback made the footer grow out of control.

Since 1.0.1, the theme (src/NavigationFallback.php) replaces that page-list fallback with a short sample menu: Home, Blog (/blog/), About (/about/), and Contact (/contact/). This applies to any Navigation block whose fallback would be only a Page List, in the header as well as the footer.

To show your own links, select the Navigation block and choose or create a menu. Once a menu is assigned, the sample links no longer appear.

The sidebar template part provides supplementary content alongside the main content area. It is not included in all templates by default.

The default Aegis sidebar includes:

Editing the Sidebar

  1. Navigate to Appearance → Editor.
  2. Click Patterns in the left sidebar.
  3. Select Template Parts.
  4. Click Sidebar to open it in the editor.
  5. Make your changes and click Save.

Using the Sidebar in Templates

To add a sidebar to a template that does not currently have one:

  1. Open the template in the Site Editor.
  2. Wrap the main content area in a Columns block (for example, 2/3 + 1/3 layout).
  3. In the narrower column, insert a Template Part block.
  4. Select the Sidebar template part from the dropdown.
  5. Save the template.

To remove a sidebar from a template, delete the Template Part block referencing the sidebar.

Creating Custom Template Parts

You can create additional template parts for specialized needs:

Create a template part and choose the area it belongs to.

  1. In the Site Editor, go to Patterns → Template Parts.
  2. Click the + button to add a new template part.
  3. Choose an area designation (Header, Footer, or General).
  4. Build the layout using blocks.
  5. Save the template part.
  6. Reference the new part in any template by inserting a Template Part block.

Template Part Areas

WordPress defines three template part areas:

AreaPurposeUsage
HeaderTop of the pageSite branding, navigation
FooterBottom of the pageCopyright, secondary links
GeneralAnywhere in the templateSidebars, banners, and other reusable sections

The area designation helps WordPress organize parts in the editor interface and determines where they can be selected from the template part picker.

Overriding Template Parts per Template

If you need a different header or footer for a specific template:

  1. Open the target template in the Site Editor.
  2. Click on the existing Template Part block (for example, the header).
  3. In the block toolbar, click Replace.
  4. Select a different template part, or choose Start blank to build a custom section directly in that template.

This override only affects the current template; other templates continue using the original part.

Loading Parts Contextually

To swap header, footer, or sidebar based on page context without duplicating templates, use Aegis’s aegis_dynamic_template_part_slug filter. See Dynamic Template Parts for examples (category sidebars, landing headers, checkout footers).

Reverting Template Parts

To restore a template part to its original state:

  1. Navigate to Patterns → Template Parts in the Site Editor.
  2. Select the modified template part.
  3. Open the Options menu (three dots).
  4. Click Clear customizations.

This removes all your changes and restores the version that shipped with Aegis.

Next Steps

Block Patterns

Understanding Block Patterns

A block pattern is a pre-arranged group of blocks that forms a complete section or layout component. Patterns accelerate page building by providing professionally designed starting points that you can modify freely after insertion.

Inserting a Pattern

From the Block Inserter

Browse Aegis patterns by category in the block inserter.

  1. Click the Block Inserter (+) in the top toolbar of the editor.
  2. Switch to the Patterns tab.
  3. Browse the categories in the dropdown or search by keyword.
  4. Click a pattern to insert it at the current cursor position.

From the Slash Command

  1. Type / in an empty block to open the quick inserter.
  2. Start typing a pattern name or keyword.
  3. Select the pattern from the results.

From the Pattern Explorer

The pattern explorer shows larger previews.

  1. In the Patterns tab of the block inserter, click Explore all patterns.
  2. Browse the full-screen pattern explorer with previews.
  3. Click a pattern to insert it.

Pattern Categories

Theme patterns live in 28 patterns/ category folders:

CategoryDescriptionTypical Use
AboutAbout sections and pagesCompany info, bios
AuthorAuthor profile and bio layoutsBlog author pages
BlogBlog listing and post layoutsBlog pages, post grids
CommerceE-commerce product sectionsShop pages, product highlights
ContactContact forms and informationContact pages, footer sections
CTACall-to-action sectionsConversion sections
EventEvent listings and detailsEvent pages, calendars
FAQFrequently asked questionsSupport pages
FeaturedFeature showcases and gridsProduct features, services
FooterFooter layoutsSite footers
HeaderHeader layoutsSite headers
HeroHero banners and landing sectionsPage headers, landing pages
Hidden404 page layouts, not shown in the inserter404 template
LogosLogo grids and client showcasesTrust signals, partnerships
NewsletterEmail signup sectionsLead generation
NoticeAlert and notification bannersAnnouncements, warnings
PagesFull page layoutsComplete page designs
PortfolioPortfolio and project showcasesCreative portfolios
PricingPricing tables and comparisonsSaaS, service pricing
ProductProduct detail sectionsProduct showcases
SidebarSidebar / complementary layoutsBlog sidebars, template parts
SliderCarousel and slider layoutsImage galleries, testimonials
StatsStatistics and number highlightsAchievement sections
TeamTeam member grids and profilesAbout pages
TemplateOne layout per template file, not shown in the inserterTemplate building
TestimonialReviews and testimonial sectionsSocial proof
TimelineChronological content layoutsCompany history, roadmaps
UtilityColor palette, gradients, dark mode toggle, search toggle, skip linkLayout utilities

Related Posts layouts (blog-related-posts-grid, list, cards, minimal) are in the Blog category. They unregister when Aegis → Blocks → Related Posts is implied off. See Related Posts Block.

Modal patterns (aegis/modal-*) are registered by the Aegis Dash when the Modal block is enabled — they are not theme patterns.

Customizing Patterns After Insertion

Once inserted, a pattern becomes regular blocks that you can fully customize:

Pattern Design Principles

All Aegis patterns are built following these principles:

Hidden Patterns

52 theme patterns do not appear in the block inserter: the 3 Hidden patterns (404 layouts), the 48 Template patterns that the files in templates/ load, and utility-patterns. They set Inserter: false in their file header (the hidden category is also excluded automatically). Templates and other patterns still reference them by slug, for example <!-- wp:pattern {"slug":"template-single"} /-->.

WooCommerce Patterns

WooCommerce block patterns (product grids, store headers, checkout/cart template patterns, etc.) need WooCommerce. When WooCommerce is active, the Aegis Dash registers its store versions of these patterns.

Without WooCommerce, the theme keeps them out of the editor so it never shows “unsupported block” placeholders:

This check runs when the editor loads patterns. On the front end, blocks from inactive plugins render as nothing.

The theme still includes generic Commerce and Product marketing patterns that use core blocks only (for example category cards, trust badges). Patterns with wp:woocommerce/* blocks live in the plugin — see Aegis Dash Patterns.

RequirementPatterns available
Aegis theme onlyGeneric commerce marketing patterns (core blocks)
Theme + Aegis Dash + WooCommerceFull WooCommerce block pattern library
Above + TI WooCommerce WishlistWishlist template pattern (template-page-wishlist)

Store headers

WC header patterns with mini-cart and customer-account blocks live in the Aegis Dash (patterns/woocommerce/header/) and require WooCommerce. The theme’s header/default for parts/header.html shows no cart or account icons in the editor when WooCommerce is inactive, and header/store-minimal for checkout/funnel pages. When WooCommerce is active, the plugin overlays header-default with the mini-cart variant.

Creating Your Own Patterns

Synced Patterns (formerly Reusable Blocks)

Save your own blocks as a synced pattern to reuse them across the site.

  1. Select the blocks you want to save as a pattern.
  2. Click the Options menu (three dots) in the block toolbar.
  3. Select Create pattern.
  4. Name the pattern and optionally assign a category.
  5. Choose whether the pattern should be Synced (changes propagate everywhere) or Not synced (independent copies).

Registering Custom Patterns (Developers)

Developers can register patterns by creating PHP files in the patterns/ directory:

Copied!
PHP
<?php/** * Title: My Feature Section * Slug: my-feature-section * Categories: featured * Description: A custom feature section. */?><!-- wp:group {"align":"wide"} --><div class="wp-block-group alignwide"> <!-- Block markup here --></div><!-- /wp:group -->

Aegis registers the file under its first category plus the Slug header, so this example becomes featured-my-feature-section. Files whose names start with a dot are skipped. To keep your own patterns outside the theme folder, register more folders with the aegis_pattern_dirs filter from a plugin.

When a child theme is active, Aegis scans the parent patterns/ folders first, then the child’s. That keeps inherited templates (header, footer, front page) resolving parent slugs such as header-default, while a child file in the same category folder with the same basename replaces the parent pattern. Reference patterns with the Aegis slug ({category}-{slug}), not the WordPress theme/slug form — core’s pattern file scan is disabled so those theme-prefixed names are never registered.

Browsing Patterns by Page Type

When building specific types of pages, look at these categories:

Page TypeRecommended Categories
HomepageHero, Featured, Testimonial, CTA, Logos, Stats
About PageAbout, Team, Timeline, Stats
ServicesFeatured, Pricing, FAQ, CTA
ContactContact, Newsletter
BlogBlog, Author
PortfolioPortfolio, Slider
ShopCommerce, Product, Pricing
Landing PageHero, Featured, Testimonial, CTA, Pricing

Next Steps

Style Variations

Understanding Style Variations

A style variation is a theme.json override that redefines the design tokens for your site. When you apply a variation, all templates, template parts, and patterns automatically adapt to the new color palette without any manual changes. Typography, spacing, and layout tokens stay the same in every variation.

Style variations do not alter your content or layout — they only change the visual presentation.

Applying a Style Variation

Click a variation to preview it, then Save to apply it.

  1. Navigate to Appearance → Editor to open the Site Editor.
  2. Click the Styles icon (half-filled circle) in the top toolbar.
  3. Click Browse styles.
  4. Scroll through the grid of available variations.
  5. Click a variation to preview it on your site.
  6. Click Save to apply the variation.

Available Variations

Aegis ships with 60 style variations organized alphabetically:

#VariationPrimary Mood
1AmberWarm golden tones
2AmethystRich purple elegance
3ArcticCool icy blues
4AutumnWarm fall palette
5BlossomSoft pink florals
6CanaryBright cheerful yellow
7CharcoalDeep dark grays
8CopperWarm metallic earth
9CoralVibrant warm pink-orange
10CrimsonBold deep red
11DesertSandy warm neutrals
12DuskEvening twilight hues
13EarthNatural brown tones
14EmeraldRich green jewel
15FlamingoPlayful bright pink
16ForestDeep natural greens
17FuchsiaVivid magenta-pink
18GildedLuxurious gold accents
19GrayscalePure monochromatic
20GroveFresh green nature
21IndigoDeep blue-violet
22IvoryClean off-white elegance
23LagoonTropical blue-green
24LavenderSoft purple calm
25LimeEnergetic yellow-green
26LinenWarm neutral fabric
27MarigoldBright orange-yellow
28MidnightDark navy blue
29MistLight airy gray
30MossMuted olive green
31NeonElectric vivid colors
32NeutralBalanced gray palette
33ObsidianPure dark black
34OceanDeep sea blue
35OrchidExotic purple-pink
36ParchmentAged paper warmth
37PeachSoft warm orange
38PewterCool silver-gray
39PlumDark rich purple
40RaspberryBold berry red-pink
41RoseClassic soft pink
42RusticWeathered earth tones
43SageMuted green calm
44SandWarm desert beige
45SapphireBrilliant deep blue
46SepiaVintage warm brown
47SkyLight cheerful blue
48SlateCool blue-gray
49SteelIndustrial cool gray
50StoneNeutral warm gray
51SunflowerBright warm yellow
52TangerineVibrant orange
53TeaWarm muted green
54TealBlue-green balance
55TerracottaWarm clay earth
56VintageRetro muted palette
57VioletClassic purple
58WalnutRich dark brown
59WineDeep burgundy red
60ZincCool gray on a dark background

What Each Variation Changes

Every variation file in styles/ sets settings.color.palette: the primary, neutral, and status shades. Because every block, pattern, and template uses palette tokens, the whole site follows the new palette.

Four variations also set styles:

No variation changes fonts, font sizes, spacing, or layout.

Customizing After Applying a Variation

After applying a style variation, you can further customize individual settings:

  1. With the variation active, click the Styles icon.
  2. Navigate to Typography, Colors, or Layout.
  3. Adjust any specific token or element style.
  4. Save your changes.

Your customizations layer on top of the variation. If you later switch to a different variation, your manual overrides may be replaced.

Previewing Variations

You can preview any variation without committing to it:

Variations preview live in the canvas before you save.

  1. Open the style browser in the Site Editor.
  2. Click a variation — the canvas updates immediately.
  3. Navigate through your site pages to see the effect on different layouts.
  4. If you do not like it, select a different variation or close without saving.

Reverting to the Default Variation

To return to the default Aegis style (the theme’s own theme.json, titled Light):

  1. Open the Styles panel in the Site Editor.
  2. Click Browse styles.
  3. Select the first style in the list (the base theme.json styles).
  4. Click Save.

Alternatively, to reset all style customizations:

  1. Open the Styles panel.
  2. Click the Options menu (three dots).
  3. Select Reset to defaults.

How Variations Work Technically

Style variations are stored as JSON files in the styles/ directory of the theme:

Copied!
Directory tree
styles/├── amber.json├── amethyst.json├── arctic.json├── ...└── zinc.json

Each file contains a partial theme.json structure that overrides specific settings from the base theme.json.

Creating Custom Variations (Advanced)

While you cannot create new style variations through the Site Editor interface, developers can add custom variations:

  1. Create a new JSON file in the styles/ directory.
  2. Define the title and any settings or styles overrides.
  3. The variation will appear automatically in the style browser.

See the CSS Variables Reference for the full list of design tokens available for customization.

Next Steps

Global Styles

Accessing Global Styles

Open Global Styles with the Styles icon in the Site Editor.

  1. Navigate to Appearance → Editor to open the Site Editor.
  2. Click the Styles icon (half-filled circle) in the top-right toolbar.
  3. The Styles panel opens on the right side.

Styles Panel Overview

The Global Styles panel contains the following sections:

SectionWhat It Controls
Browse stylesStyle variation selector
TypographyFont families, sizes, weights, line heights
ColorsPalette, backgrounds, text, links, buttons
LayoutContent width, padding, block gap
BlocksPer-block type style overrides

Typography Settings

Set site-wide typography for each element.

Global Typography

Configure site-wide text settings:

  1. Click Typography in the Styles panel.
  2. Choose an element to configure:
    • Text — Body text defaults.
    • Links — Link appearance and hover states.
    • Headings — All heading levels (H1–H6).
    • Captions — Image and block captions.
    • Buttons — Button text styling.

Available Typography Options

OptionDescription
Font familyChoose from Lexend (lexend, body), Lexend Deca (lexend-deca, headings), or JetBrains (jetbrains, code).
SizeSelect from the 27 fluid sizes (8px to 96px with clamp()), or Inherit.
AppearanceFont weight (thin through black) and style (normal or italic).
Line heightRelative line height value.
Letter spacingAdditional space between characters.
Text decorationUnderline, strikethrough, or none.
Text transformUppercase, lowercase, capitalize, or none.

See Typography for the full type scale and font details.

Color Settings

Palette

Aegis provides a comprehensive color palette based on the Tailwind CSS v3 scale:

The Aegis color palette in Global Styles.

See Color Palette for the complete color reference.

Color Elements

Configure colors for specific elements:

ElementWhat It Affects
BackgroundPage and section backgrounds
TextDefault body text color
LinksAnchor text color and hover state
HeadingsHeading text color (H1–H6)
CaptionsCaption text color
ButtonsButton background and text color

Custom Colors

To add a custom color:

  1. In the Colors section, click Palette.
  2. Switch to the Custom tab.
  3. Click the + button to add a new color.
  4. Use the color picker or enter a hex/RGB value.
  5. Name the color for easy reference.

Layout Settings

Configure content dimensions and spacing:

SettingDefaultDescription
Content size720px (max)Maximum width for standard content.
Wide size1200px (max)Maximum width for wide-aligned blocks.
Paddinglg spacing step (24–48px), left and rightSpace between content and viewport edges.
Block spacingsm spacing step (20–24px)Vertical gap between blocks.

See Layout for detailed layout configuration.

Per-Block Styling

Global Styles allows you to set default styles for specific block types:

Style every instance of a block from Styles → Blocks.

  1. In the Styles panel, scroll to the Blocks section.
  2. Click Blocks or search for a specific block type.
  3. Configure typography, colors, dimensions, and spacing for that block.
  4. These settings become the default for all instances of that block type.

Example: Styling All Buttons

  1. Navigate to Styles → Blocks → Button.
  2. Set the background color, text color, border radius, and padding.
  3. Save — all Button blocks across your site will use these defaults.

Individual blocks can still override these defaults through their own block settings.

Exporting and Importing Styles

Exporting Your Styles

The Site Editor does not provide a direct export button, but your style customizations are stored in the database as a wp_global_styles custom post type. You can export them by:

  1. Copying the relevant portions of your customized theme.json structure.
  2. Using the WordPress REST API to retrieve the global styles object.

Resetting Styles

To clear all style customizations and return to the theme defaults:

  1. Open the Styles panel.
  2. Click the Options menu (three dots at the top).
  3. Select Reset to defaults.
  4. Confirm the action.

This removes all your custom overrides but does not change which style variation is active.

Styles and Theme.json

Global Styles in the editor correspond directly to the theme.json configuration:

When you make changes in the Styles panel, WordPress stores them as overrides on top of the theme.json file shipped with Aegis. The original file is never modified.

Tips for Working with Global Styles

Next Steps

Block Settings in the Editor

Select a block, open the Settings tab (the gear icon), and you will see the panels below. A block only shows the panels that make sense for it.

PanelWhat it does
AnimationPlay an entrance, exit, or looping effect
DisplayChange how the block is laid out: display type, order, and width
FilterBlur, brighten, or recolor the block, or its backdrop
PositionPosition, stack, and clip the block
ShadowAdd a box shadow with exact values
TransformRotate, scale, skew, or move the block
AdvancedAnchor, extra CSS classes, custom CSS, and the HTML element
VisibilityShow or hide the block (Aegis Dash)

The Styles tab (the half-filled circle) holds the colors, typography, dimensions, and borders for the block. For blocks with extra block styles, such as Group, it also lists those styles at the top. See Enhanced Core Blocks.

Note

These panels are part of the Aegis theme framework. Each setting is stored on the block, so it travels with the block when you copy it, add it to a pattern, or save it as a synced pattern.

Animation

Choose how the block appears, leaves, or keeps moving.

ControlOptions
EffectSpin, Bounce, Pop, Pulse, Shake, Flip, Up and Down, plus Fade, Zoom, Rotate, Bounce, and Scale variants in and out (for example Fade In Up, Zoom Out Left, Rotate In)
EasingEase, Ease In, Ease Out, Ease In Out, Linear
EventEnter (when the block comes into view), Exit, Infinite (repeats), Scroll (follows the scroll position)
Duration, Delay, RepeatHow long the effect runs, how long it waits before starting, and how many times it plays

Tip

Use Enter with a Fade In effect for sections that appear as the visitor scrolls. Keep durations short, and remember that visitors who ask their device to reduce motion see less animation.

Display

Control how the block sits in its parent.

ControlWhat it does
DisplayNone, Flex, Inline Flex, Block, Inline Block, Inline, Grid, Inline Grid, or Contents
OrderChanges the order of a block inside a Flex or Grid parent without moving it in the editor
Width, Min Width, Max WidthA size in px, %, em, rem, vw, or vh (Width also accepts auto)

Choose None to take the block out of the layout entirely. To hide it only on some screens, use Visibility.

Filter

Apply visual effects to the block with sliders for Blur, Brightness, Contrast, Grayscale, Hue Rotate, Invert, Opacity, Saturate, and Sepia.

Turn on Use as backdrop filter to apply the effect to whatever is behind the block instead of the block itself. This is how frosted-glass cards are made: a semi-transparent block with a backdrop blur.

Position

ControlOptions
PositionRelative, Absolute, Sticky, Fixed, Static
InsetTop, right, bottom, and left offsets, or All sides at once, in px, %, em, rem, vw, or vh
Z-IndexThe stacking order. Higher numbers sit on top.
OverflowHidden or Visible. Hidden clips anything that sticks out of the block.
Pointer EventsNone (clicks pass through the block) or All

Shadow

Add a box shadow with X, Y, Blur, Spread, and a Color. Turn on Inset for an inner shadow. The tabs at the top let you set the shadow for the default state, on Hover, and for Text.

For ready-made shadow values from the design system, see Shadows.

Transform

Move and reshape the block without changing the layout around it: Rotate (and Rotate X and Rotate Y for 3D), Scale (and Scale X, Scale Y), Skew (and Skew X, Skew Y), and Translate X, Translate Y, and Translate Z.

Advanced

ControlWhat it does
HTML anchorAn ID so a link can jump to the block (#pricing)
Additional CSS class(es)Your own classes, separated by spaces. For example is-style-dark shows a section in dark mode. See Dark Mode.
Additional CSSCSS that applies to this block only. You do not need a selector. Add a property and value, for example color: red;.
HTML elementThe tag the block outputs (for example div, section, or aside)
Allowed BlocksWhich blocks can be added inside, for container blocks

Visibility

The Visibility panel shows or hides a block by screen size and by condition, for example hiding a block on mobile or only showing it to logged-in visitors. The theme applies the rules when the page renders and adds the aegis-hide-mobile, aegis-hide-tablet, and aegis-hide-desktop classes. The panel itself comes with Aegis Dash.

See Aegis Dash Conditional Logic and Visibility Presets.

Responsive Preview

Use the device icon in the editor toolbar to preview desktop, tablet, and mobile. For how the Aegis breakpoints relate to the WordPress responsive states, see Core Responsive States and Aegis Breakpoints.

Next Steps

Dark Mode

How Dark Mode Works

Dark mode in Aegis uses a class-based toggle mechanism:

This approach ensures that:

Enabling Dark Mode

Globally via Template

To enable dark mode site-wide:

Add is-style-dark to the outer Group block to switch a template to dark mode.

  1. Open the Site Editor (Appearance → Editor).
  2. Edit the template that wraps your content.
  3. Select the outermost Group block.
  4. In the Advanced section of the block settings, add is-style-dark to the Additional CSS class(es) field.
  5. Save the template.

Per-Page via Page Settings

To enable dark mode on individual pages:

  1. Edit the page in the block editor.
  2. Select the root Group block or add one wrapping all content.
  3. Add is-style-dark to the Additional CSS class(es) field.
  4. Update the page.

Via Toggle Button

The Utility Dark Mode Toggle pattern (utility-dark-mode-toggle) gives visitors a light and dark switch:

The dark mode toggle lets visitors switch between light and dark.

  1. Each button sets is-style-dark or is-style-light on the <body> element.
  2. It also sets the aegisDarkMode cookie (true or false, kept for one day), so the server adds the same class on the next page load. A value of system follows the operating system again.
  3. Place the pattern in the header template part to offer it site-wide.

For testing, add ?dark_mode=true or ?dark_mode=false to any URL. The URL parameter overrides the cookie for that request.

Color Mapping

Dark mode swaps each palette shade with its counterpart (DarkMode.php). A few examples:

TokenBecomes in Dark Mode
neutral-0 (page background)neutral-950
neutral-50 (surfaces)neutral-900
neutral-200 (borders)neutral-700
neutral-700 (body text)neutral-200
neutral-800 (headings)neutral-100
primary-900 (buttons)primary-100
primary-600primary-400
success-600, warning-600, error-600, info-600the -100 shade, and the reverse

The 500 shades stay the same. The page background comes from --wp--custom--body--background.

Respecting System Preferences

Aegis follows the visitor’s operating system preference with the prefers-color-scheme media query until the visitor picks a mode:

Copied!
CSS
@media (prefers-color-scheme: dark) { html body:not(.is-style-light):not(.is-style-dark) { /* Dark mode custom properties applied */ }}

Once the visitor uses the toggle, the body carries is-style-light or is-style-dark, and the system preference no longer applies.

Default Mode

On the front end, the body gets a default-mode-light or default-mode-dark class. The default is light, unless the global settings define custom.lightMode, in which case it is dark. Change it with the aegis_default_mode filter:

Copied!
PHP
add_filter( 'aegis_default_mode', function ( string $mode, array $global_settings ): string { return 'dark';}, 10, 2 );

The filter also sets the starting mode of the editor preview toggle. See Hooks and Filters.

Previewing Dark Mode in the Editor

Since 1.0.1, the block editor and Site Editor have a light and dark preview toggle in the top bar, next to the Styles and Settings buttons (moon and sun icons).

The editor canvas previews dark mode as you work.

The toggle loads only when dark mode is available. Returning false from aegis_dark_mode, or setting custom.darkMode to false in global settings, removes it.

Dark Mode and Style Variations

All 60 style variations support dark mode. Each variation defines both light and dark color mappings, so switching to dark mode preserves the character of the chosen variation (for example, the “Ocean” variation will use dark navy backgrounds rather than generic dark gray).

Accessibility Considerations

Dark mode in Aegis is designed to keep default token pairings at WCAG 2.2 AA contrast levels:

Editor-chosen colors and media overlays still need a contrast check. See Accessibility.

To hide a block, post, or hook pattern in light or dark mode, use Aegis → Conditionals → Accessibility → Color Scheme. Those rules follow the same is-style-* / default-mode-* classes as the visitor toggle. See Aegis Dash Conditional Logic.

Per-Section Dark Mode

You can apply dark mode to individual sections rather than the entire page:

  1. Select a Group block or container section.
  2. Add is-style-dark to the Additional CSS class(es) field.
  3. That section will render with dark mode colors while the rest of the page remains in light mode.

This technique is useful for creating visual contrast between sections, such as a dark hero section followed by light content.

Icons in Dark Mode

The WordPress Icon block uses currentColor for fills (and strokes on outline sets). Literal black in library SVGs is rewritten to currentColor, so icons follow the surrounding text token when is-style-dark is applied. Do not treat missing front-end icons as a dark-mode bug until you have ruled out skip-link / template-part wrapping — see SVG Icons and Common Issues.

Disabling Dark Mode

To turn dark mode off completely, return false from the aegis_dark_mode filter:

Copied!
PHP
add_filter( 'aegis_dark_mode', '__return_false' );

Add it through a plugin, such as a Functions (PHP) snippet in Aegis → Code Snippets. See Where to Put Snippets.

This removes the dark mode styles, the system-preference rule, and the editor preview toggle. Setting settings.custom.darkMode to false in a child theme’s theme.json has the same effect.

If you only want to stop offering a choice, remove the dark mode toggle pattern from your templates and parts.

Custom Dark Mode Adjustments

To override specific dark mode colors:

  1. Open Appearance → Editor → Styles.
  2. Make color adjustments in the Styles panel.
  3. These overrides apply to both light and dark modes by default.

For dark-mode-specific overrides, you can use the Additional CSS section or a custom stylesheet that targets the .is-style-dark class:

Copied!
CSS
.is-style-dark { --wp--preset--color--primary-500: #a1a1aa;}

Implementation Details

The dark mode system works through CSS custom property reassignment (vendor/aegis/framework/src/DesignSystem/DarkMode.php):

  1. The framework outputs two rule sets: html body.is-style-light and html body.is-style-dark, each with the full palette for that mode.
  2. Each palette shade is swapped with its counterpart from the shade map (see Color Mapping).
  3. The same remaps apply to any block with the is-style-dark or is-style-light class, which is how per-section dark mode works.
  4. A prefers-color-scheme rule applies the opposite mode when the visitor has not chosen one.
  5. The server reads the aegisDarkMode cookie and the dark_mode URL parameter to add the right body class.

No JavaScript framework or library is required. The visitor toggle is a few lines of inline script in the toggle pattern.

Next Steps

Color Palette

Color Architecture

The palette is organized into these color families (no Secondary, Tertiary, or Quaternary scales):

Primary Colors (Zinc)

The primary palette provides 12 steps from near-white to near-black:

TokenShadeTypical Usage
primary-25Lightest tintSubtle backgrounds
primary-50Very lightHover states on light backgrounds
primary-100LightSecondary backgrounds
primary-200SoftBorders, dividers on light backgrounds
primary-300Medium-lightDisabled states
primary-400MediumPlaceholder text
primary-500BaseIcons, secondary text
primary-600Medium-darkBody text alternative
primary-700DarkHeadings, primary text
primary-800Very darkHigh emphasis text
primary-900DarkerDark backgrounds
primary-950DarkestHighest contrast backgrounds

Neutral Colors

The neutral palette provides pure grayscale values:

TokenShadeTypical Usage
neutral-0White (#FFFFFF)Page background (light mode)
neutral-50Near-whiteCard backgrounds, subtle surfaces
neutral-100Very light graySection backgrounds
neutral-200Light grayBorders, dividers
neutral-300GrayDisabled borders
neutral-400Medium gray (#666666)Muted UI text that still meets ~4.5:1 on the default body background; prefer neutral-600+ for small body copy
neutral-500Mid graySecondary text, icons
neutral-600Dark grayBody text, fine print, disclaimers
neutral-700Darker grayDefault body text
neutral-800Very dark grayHeadings (default)
neutral-900Near-blackPrimary text
neutral-950Darkest (#0a0a0a)Page background (dark mode)

Info Colors (Blue)

Informational accents and status. Ships only info-100, info-500, and info-600.

Success Colors (Green)

Used for positive feedback, confirmation states, and success indicators:

TokenShadeTypical Usage
success-100LightSuccess alert / badge backgrounds
success-500BasePrimary success indicators
success-600DarkSuccess text / high emphasis on light backgrounds

Success ships only success-100, success-500, and success-600.

Warning Colors (Orange)

Used for cautionary states, important notices, and attention elements:

TokenShadeTypical Usage
warning-100LightWarning alert / badge backgrounds
warning-500BasePrimary warning indicators
warning-600DarkWarning text / high emphasis on light backgrounds

Warning ships only warning-100, warning-500, and warning-600.

Error Colors (Red)

Used for error states, destructive actions, and critical alerts:

TokenShadeTypical Usage
error-100LightError alert / badge backgrounds
error-500BasePrimary error indicators
error-600DarkError text / high emphasis on light backgrounds

Error ships only error-100, error-500, and error-600.

Utility Colors

Additional colors used for specific interface needs:

TokenValueUsage
transparenttransparentTransparent backgrounds / overlays
currentcurrentColorInherits parent text color
inheritinheritInherits parent color
shadowrgba shadow tokenShared shadow tint

Using Colors in the Editor

Block Color Settings

Most blocks expose color settings in the right sidebar:

Apply palette colors from a block’s Color panel.

  1. Select a block.
  2. Open the Color section in block settings.
  3. Choose from the palette presets or enter a custom value.

Available color options vary by block but typically include:

Global Color Settings

To change colors site-wide, use Global Styles:

Change site-wide colors in Styles → Colors.

  1. Open the Site Editor (Appearance → Editor).
  2. Click the Styles icon.
  3. Navigate to Colors.
  4. Set colors for elements (background, text, links, headings, buttons).

See Global Styles for detailed instructions.

CSS Custom Properties

All colors are available as CSS custom properties following the WordPress preset naming convention:

Copied!
CSS
var(--wp--preset--color--primary-500)var(--wp--preset--color--neutral-200)var(--wp--preset--color--info-500)var(--wp--preset--color--success-600)var(--wp--preset--color--warning-500)var(--wp--preset--color--error-500)

See CSS Variables Reference for the complete list of CSS custom properties.

Dark Mode Color Mapping

In dark mode, the color scale effectively inverts. Light shades become backgrounds and dark shades become foregrounds:

UsageLight Mode TokenDark Mode Token
Page backgroundneutral-0neutral-950
Card backgroundneutral-50neutral-900
Borderneutral-200neutral-700
Body textneutral-700neutral-200
Heading textneutral-800neutral-100

See Dark Mode for complete dark mode documentation.

Contrast and Accessibility

The palette is tuned so default body text and interactive tokens can meet WCAG 2.2 AA contrast when used as documented:

Custom cover images, gradients, and editor-chosen colors still need a contrast check (WebAIM Contrast Checker or similar). See Accessibility.

Next Steps

Typography

Font Families

FontSlugRoleWeightsFile
LexendlexendBody text300–900assets/fonts/lexend.woff2
Lexend Decalexend-decaHeadings300–900assets/fonts/lexend-deca.woff2
JetBrains (JetBrains Mono)jetbrainsCode100–900assets/fonts/

Each family falls back to a system stack: Lexend to --wp--preset--font-family--sans-serif, Lexend Deca to Lexend, and JetBrains to --wp--preset--font-family--monospace. The system stacks come from the framework (aegis_system_fonts filter).

Font Loading Strategy

See Performance for more details on the font strategy.

Type Scale

Font-size slugs are the pixel size: 96, 88, … 8. Each size is a clamp() between a mobile minimum and the named maximum, so large sizes shrink on phones. theme.json sets defaultFontSizes to false, so the WordPress default sizes are not offered.

SlugMinMaxValueDefault use
9656px96pxclamp(56px,calc(39.43px + 4.420vw),96px)Display
8852px88pxclamp(52px,calc(37.08px + 3.978vw),88px)Display
8048px80pxclamp(48px,calc(34.74px + 3.536vw),80px)Display
7244px72pxclamp(44px,calc(32.40px + 3.094vw),72px)Display
6440px64pxclamp(40px,calc(30.06px + 2.652vw),64px)Display
6038px60pxclamp(38px,calc(28.88px + 2.431vw),60px)
5637px56pxclamp(37px,calc(29.13px + 2.099vw),56px)
5236px52pxclamp(36px,calc(29.37px + 1.768vw),52px)
4834px48pxclamp(34px,calc(28.20px + 1.547vw),48px)
4432px44pxclamp(32px,calc(27.03px + 1.326vw),44px)H1
4231px42pxclamp(31px,calc(26.44px + 1.215vw),42px)
4030px40pxclamp(30px,calc(25.86px + 1.105vw),40px)
3628px36pxclamp(28px,calc(24.69px + 0.884vw),36px)H2
3228px32pxclamp(28px,3.2vw,32px)H3
2824px28pxclamp(24px,2.8vw,28px)H4
2422px24pxclamp(22px,2.4vw,24px)H5
2220px22pxclamp(20px,2.2vw,22px)
2019px20pxclamp(19px,2vw,20px)H6
1817px18pxclamp(17px,1.8vw,18px)
1615px16pxclamp(15px,1.6vw,16px)Body text (root)
1514px15pxclamp(14px,calc(13.59px + 0.110vw),15px)
1413px14pxclamp(13px,1.4vw,14px)Buttons, code, captions
1312px13pxclamp(12px,calc(11.59px + 0.110vw),13px)
1211px12pxclamp(11px,1.2vw,12px)
1110px11pxclamp(10px,calc(9.59px + 0.110vw),11px)
109px10pxclamp(9px,1vw,10px)
87px8pxclamp(7px,0.8vw,8px)

The 56, 42, 15, 13, and 11 sizes were added in 1.0.1. The scale also includes an Inherit preset (inherit), which takes the parent’s size.

Fluid Typography Formula

Each fluid size interpolates linearly between its minimum and maximum:

Copied!
CSS
/* Example: the 44 size, used for H1 */font-size: clamp(32px, calc(27.03px + 1.326vw), 44px);

This ensures:

Font Weights

Font weights are custom tokens (settings.custom.fontWeight), output as --wp--custom--font-weight--{name}:

TokenWeight
thin100
extralight200
light300
normal400
medium500
semibold600
bold700
extrabold800
black900

Because all three fonts are variable, every weight in a font’s range renders from the same file.

Default Element Styling

Body Text

Headings

LevelSizeLine height
H14452
H23644
H33240
H42836
H52432
H62028

Code

Buttons and Captions

Using Typography in the Editor

Setting Font Size

Pick a size from the Aegis type scale.

  1. Select a text block (Paragraph, Heading, or similar).
  2. In the right sidebar, find the Typography section.
  3. Choose a size from the preset dropdown or enter a custom value.

Setting Font Family

Choose from the fonts bundled with the theme.

  1. Select a text block.
  2. In the Typography section, click the font family selector.
  3. Choose from Lexend, Lexend Deca, or JetBrains.

Setting Font Weight

  1. Select a text block.
  2. In the Typography section, click Appearance.
  3. Select the desired weight from the dropdown.

CSS Custom Properties

Copied!
CSS
/* Font families */var(--wp--preset--font-family--lexend)var(--wp--preset--font-family--lexend-deca)var(--wp--preset--font-family--jetbrains)/* Font sizes */var(--wp--preset--font-size--96) /* 56px–96px */var(--wp--preset--font-size--88) /* 52px–88px */var(--wp--preset--font-size--80) /* 48px–80px */var(--wp--preset--font-size--72) /* 44px–72px */var(--wp--preset--font-size--64) /* 40px–64px */var(--wp--preset--font-size--60) /* 38px–60px */var(--wp--preset--font-size--56) /* 37px–56px */var(--wp--preset--font-size--52) /* 36px–52px */var(--wp--preset--font-size--48) /* 34px–48px */var(--wp--preset--font-size--44) /* 32px–44px */var(--wp--preset--font-size--42) /* 31px–42px */var(--wp--preset--font-size--40) /* 30px–40px */var(--wp--preset--font-size--36) /* 28px–36px */var(--wp--preset--font-size--32) /* 28px–32px */var(--wp--preset--font-size--28) /* 24px–28px */var(--wp--preset--font-size--24) /* 22px–24px */var(--wp--preset--font-size--22) /* 20px–22px */var(--wp--preset--font-size--20) /* 19px–20px */var(--wp--preset--font-size--18) /* 17px–18px */var(--wp--preset--font-size--16) /* 15px–16px */var(--wp--preset--font-size--15) /* 14px–15px */var(--wp--preset--font-size--14) /* 13px–14px */var(--wp--preset--font-size--13) /* 12px–13px */var(--wp--preset--font-size--12) /* 11px–12px */var(--wp--preset--font-size--11) /* 10px–11px */var(--wp--preset--font-size--10) /* 9px–10px */var(--wp--preset--font-size--8) /* 7px–8px */var(--wp--preset--font-size--inherit)/* Font weights */var(--wp--custom--font-weight--normal) /* 400 */var(--wp--custom--font-weight--semibold) /* 600 */

In block markup, a preset size is written as "fontSize":"24", which adds the class has-24-font-size.

Global Typography Customization

To change typography settings site-wide:

  1. Open the Site Editor (Appearance → Editor).
  2. Click the Styles icon.
  3. Navigate to Typography.
  4. Configure settings for Text, Links, Headings, Captions, and Buttons.
  5. Save your changes.

See Global Styles for more customization details.

Next Steps

Spacing

Spacing Scale

SlugEditor nameValueRange
xxxsXXXS (4px)4pxFixed
xxsXXS (8px)8pxFixed
2xs2XS (12px)12pxFixed
xsXS (16px)16pxFixed
smS (24px)clamp(20px,calc(18.34px + 0.442vw),24px)20–24px
mdM (32px)clamp(24px,calc(20.69px + 0.884vw),32px)24–32px
mlML (40px)clamp(24px,calc(17.37px + 1.768vw),40px)24–40px
lgL (48px)clamp(24px,calc(14.06px + 2.652vw),48px)24–48px
xlXL (64px)clamp(40px,calc(30.06px + 2.652vw),64px)40–64px
xllXLL (80px)clamp(48px,calc(34.74px + 3.536vw),80px)48–80px
xxlXXL (96px)clamp(56px,calc(39.43px + 4.420vw),96px)56–96px

There are no 2xl, 3xl, or 4xl slugs. Older copies of these docs listed them by mistake.

The editor names show the largest value of each fluid step. On a phone, lg is 24px, not 48px.

Global Defaults

SettingValue
Block gap (styles.spacing.blockGap)var(--wp--preset--spacing--sm)
Root padding, left and right (styles.spacing.padding)var(--wp--preset--spacing--lg)
Spacing units%, em, px, rem, vh, vw
Custom spacing sizesOn
Generated spacing scale (spacingScale)Off (steps: 0)

The layout widths in theme.json also subtract the lg step on both sides. See Layout.

Using Spacing in the Editor

Block Spacing (Gap)

Block spacing controls the distance between blocks within a container:

  1. Select a Group, Columns, or other container block.
  2. In the block settings sidebar, find Dimensions.
  3. Adjust Block spacing using the preset scale or a custom value.

Padding

Padding adds internal space between a block boundary and its content:

Padding uses the Aegis spacing scale.

  1. Select any block.
  2. In the block settings, find Dimensions → Padding.
  3. Use the linked or individual controls for top, right, bottom, and left padding.
  4. Select from the preset scale or enter a custom value.

Margin

Margin adds external space around a block:

  1. Select any block.
  2. In the block settings, find Dimensions → Margin.
  3. Adjust top and bottom margins (horizontal margins are controlled by alignment).

Spacing in theme.json

An excerpt of the definition:

Copied!
JSON
{ "settings": { "spacing": { "spacingSizes": [ { "name": "XXXS (4px)", "slug": "xxxs", "size": "4px" }, { "name": "XXS (8px)", "slug": "xxs", "size": "8px" }, { "name": "2XS (12px)", "slug": "2xs", "size": "12px" }, { "name": "XS (16px)", "slug": "xs", "size": "16px" }, { "name": "S (24px)", "slug": "sm", "size": "clamp(20px,calc(18.34px + 0.442vw),24px)" }, { "name": "M (32px)", "slug": "md", "size": "clamp(24px,calc(20.69px + 0.884vw),32px)" } ] } }}

The full list is in theme.json.

CSS Custom Properties

WordPress turns each slug into a preset variable. A slug that starts with a digit gets a hyphen, so 2xs becomes 2-xs.

Copied!
CSS
var(--wp--preset--spacing--xxxs) /* 4px */var(--wp--preset--spacing--xxs) /* 8px */var(--wp--preset--spacing--2-xs) /* 12px */var(--wp--preset--spacing--xs) /* 16px */var(--wp--preset--spacing--sm) /* 20–24px */var(--wp--preset--spacing--md) /* 24–32px */var(--wp--preset--spacing--ml) /* 24–40px */var(--wp--preset--spacing--lg) /* 24–48px */var(--wp--preset--spacing--xl) /* 40–64px */var(--wp--preset--spacing--xll) /* 48–80px */var(--wp--preset--spacing--xxl) /* 56–96px */

In block markup, use the preset reference form: "var:preset|spacing|md".

The framework also exposes --wp--custom--spacing--gap, which is var(--wp--style--block-gap).

Spacing Guidelines

Section Spacing

ContextRecommended Slug
Between hero and first sectionxll to xxl
Between content sectionsxl to xll
Between related sub-sectionslg to xl
Between heading and contentxs to sm

Component Internal Spacing

ContextRecommended Slug
Card paddingsm to md
Input field padding2xs to xs
List item gapxxs to 2xs

Buttons use fixed padding from styles.elements.button (10px by 16px), not a spacing preset.

Inline Spacing

ContextRecommended Slug
Icon to text gapxxs to 2xs
Between buttonsxs
Grid column gapsm to md
Navigation item gapxs to sm

Global Spacing Settings

To configure site-wide spacing defaults:

  1. Open the Site Editor (Appearance → Editor).
  2. Click the Styles icon.
  3. Navigate to Layout.
  4. Adjust Padding (space between content and viewport edges).
  5. Adjust Block spacing (default gap between blocks).
  6. Save your changes.

Responsive Behavior

Because sm through xxl are fluid, section spacing shrinks on small screens without extra CSS. The fixed steps (xxxs to xs) stay the same size at every width, which keeps small gaps and icon spacing predictable.

Next Steps

Shadows

Shadow Scale

The scale runs from None through XX Small to XX Large, with increasing offset and blur:

SlugNameDescription
noneNoneNo shadow. Used to remove inherited shadows.
xxsXX SmallBarely visible. Subtle lift for small elements.
xsX SmallLight shadow. Cards and interactive elements at rest.
smSmallSmall shadow. Buttons, inputs, and small cards.
mdMediumMedium shadow. Standard card elevation.
lgLargeLarge shadow. Elevated panels and dropdowns.
xlX LargeExtra large. Modal dialogs and popovers.
xxlXX LargeMaximum elevation. Floating action elements.

theme.json sets defaultPresets to false, so the WordPress default shadows are not offered.

Shadow Values

Every layer uses one color token, --wp--custom--box-shadow--color. It is set in settings.custom.boxShadow.color to var(--wp--preset--color--shadow), the palette’s shadow entry (rgba(107,114,128,0.07)). Change that one token to tint or strengthen every preset at once.

SlugCSS Value
nonenone
xxs0 1px 2px 0 var(--wp--custom--box-shadow--color)
xs0 1px 2px var(--wp--custom--box-shadow--color), 0 2px 4px 0 var(--wp--custom--box-shadow--color)
sm0 1px 2px 0 var(--wp--custom--box-shadow--color), 0 4px 12px -4px var(--wp--custom--box-shadow--color)
md0 1px 2px 0 var(--wp--custom--box-shadow--color), 0 4px 8px var(--wp--custom--box-shadow--color)
lg0 2px 4px 0 var(--wp--custom--box-shadow--color), 0 8px 24px var(--wp--custom--box-shadow--color)
xl0 4px 8px -4px var(--wp--custom--box-shadow--color), 0 16px 24px -4px var(--wp--custom--box-shadow--color)
xxl0 4px 8px 0 var(--wp--custom--box-shadow--color), 0 24px 48px 0 var(--wp--custom--box-shadow--color)

Using Shadows in the Editor

Applying a Shadow to a Block

Pick a shadow preset in the Border & Shadow panel.

  1. Select a block that supports shadows (Group, Column, Image, Button, and others).
  2. In the block settings sidebar, find the Shadow option under Border or Styles.
  3. Click the shadow picker to see the preset options.
  4. Select a shadow preset from the scale.
  5. The shadow is applied immediately.

Removing a Shadow

  1. Select the block with the shadow applied.
  2. Open the shadow picker.
  3. Select None to remove the shadow.

Common Shadow Usage

ElementRecommended Shadow
Cards at restxs or sm
Cards on hovermd or lg
Buttons at restxxs or xs
Buttons on hoversm
Dropdown menuslg
Modal dialogsxl
Floating elementsxl or xxl
Tooltipssm
Navigation dropdownsmd or lg

CSS Custom Properties

Shadow tokens are available as CSS custom properties:

Copied!
CSS
var(--wp--preset--shadow--none)var(--wp--preset--shadow--xxs)var(--wp--preset--shadow--xs)var(--wp--preset--shadow--sm)var(--wp--preset--shadow--md)var(--wp--preset--shadow--lg)var(--wp--preset--shadow--xl)var(--wp--preset--shadow--xxl)

Example Usage in Custom CSS

Copied!
CSS
.my-card { box-shadow: var(--wp--preset--shadow--sm); transition: box-shadow 0.2s ease;}.my-card:hover { box-shadow: var(--wp--preset--shadow--lg);}

theme.json Configuration

Shadows are defined in theme.json under settings.shadow.presets:

Copied!
JSON
{ "settings": { "shadow": { "defaultPresets": false, "presets": [ { "name": "None", "slug": "none", "shadow": "none" }, { "name": "XX Small", "slug": "xxs", "shadow": "0 1px 2px 0 var(--wp--custom--box-shadow--color)" }, { "name": "X Small", "slug": "xs", "shadow": "0 1px 2px var(--wp--custom--box-shadow--color), 0 2px 4px 0 var(--wp--custom--box-shadow--color)" }, { "name": "Small", "slug": "sm", "shadow": "0 1px 2px 0 var(--wp--custom--box-shadow--color), 0 4px 12px -4px var(--wp--custom--box-shadow--color)" }, { "name": "Medium", "slug": "md", "shadow": "0 1px 2px 0 var(--wp--custom--box-shadow--color), 0 4px 8px var(--wp--custom--box-shadow--color)" }, { "name": "Large", "slug": "lg", "shadow": "0 2px 4px 0 var(--wp--custom--box-shadow--color), 0 8px 24px var(--wp--custom--box-shadow--color)" }, { "name": "X Large", "slug": "xl", "shadow": "0 4px 8px -4px var(--wp--custom--box-shadow--color), 0 16px 24px -4px var(--wp--custom--box-shadow--color)" }, { "name": "XX Large", "slug": "xxl", "shadow": "0 4px 8px 0 var(--wp--custom--box-shadow--color), 0 24px 48px 0 var(--wp--custom--box-shadow--color)" } ] } }}

Shadows in Dark Mode

The shadow color is a low-opacity gray, so shadows are subtle on light backgrounds and nearly invisible on dark ones. For more visible elevation in dark sections, use a higher preset or override --wp--custom--box-shadow--color inside that section.

Design Guidelines

Elevation Hierarchy

Use shadows consistently to establish visual hierarchy:

  1. Base level (no shadow) — Static content, backgrounds.
  2. Low elevation (xxs–xs) — Cards, panels, subtle containers.
  3. Medium elevation (sm–md) — Interactive elements, hover states.
  4. High elevation (lg–xl) — Overlays, modals, popovers.
  5. Maximum elevation (xxl) — Critical floating elements.

Transition Between States

When elements change elevation (for example, on hover), animate the transition:

Copied!
CSS
transition: box-shadow 0.2s ease-in-out;

This creates a smooth, natural feeling of the element lifting off the surface.

Next Steps

Gradients

Using Gradients in the Editor

Applying a Gradient Background

Apply an Aegis gradient as a block background.

  1. Select a block that supports gradient backgrounds (Group, Cover, Columns, Button, and others).
  2. In the block settings sidebar, find the Color section.
  3. Click Background.
  4. Switch to the Gradient tab in the color picker.
  5. Select a preset gradient or create a custom one.

Overlays on Cover Blocks

Cover blocks accept a gradient as their overlay. The scrim and vignette presets below are made for this.

Gradient overlays keep text readable on Cover images.

Available Gradient Presets

Brand and Neutral Blends

Two-color linear blends built from palette tokens. They follow the active style variation and dark mode.

NameSlugValue
Primary 700/500primary-700-500linear-gradient(135deg,var(--wp--preset--color--primary-700) 0%,var(--wp--preset--color--primary-500) 100%)
Primary 500/300primary-500-300linear-gradient(135deg,var(--wp--preset--color--primary-500) 0%,var(--wp--preset--color--primary-300) 100%)
Primary Transparentprimary-transparentlinear-gradient(180deg,var(--wp--preset--color--transparent) 0%,var(--wp--preset--color--primary-100) 100%)
Primary Foregroundprimary-foregroundlinear-gradient(135deg,var(--wp--preset--color--primary-900) 0%,var(--wp--preset--color--neutral-950) 100%)
Body/Headingbody-headinglinear-gradient(135deg,var(--wp--preset--color--neutral-600) 0%,var(--wp--preset--color--neutral-950) 100%)
Surface/Bordersurface-borderlinear-gradient(135deg,var(--wp--preset--color--neutral-100) 0%,var(--wp--preset--color--neutral-200) 100%)

Split Backgrounds

Hard 50% splits between the page background and transparent. Useful behind cards that overlap two sections.

NameSlugValue
Background/Transparentbackground-transparentlinear-gradient(0deg,var(--wp--custom--body--background) 50%,transparent 50%)
Transparent/Backgroundtransparent-backgroundlinear-gradient(180deg,var(--wp--custom--body--background) 50%,transparent 50%)

Fades

Fade from the white base (neutral-0) to transparent, or from near-black (rgba(9,9,11,…)) to transparent.

NameSlugValue
Fade Leftfade-leftlinear-gradient(90deg,var(--wp--preset--color--neutral-0) 0%,transparent 100%)
Fade Rightfade-rightlinear-gradient(-90deg,var(--wp--preset--color--neutral-0) 0%,transparent 100%)
Fade Dark Topfade-dark-toplinear-gradient(180deg,rgba(9,9,11,0.80) 0%,rgba(9,9,11,0.4) 50%,transparent 100%)
Fade Dark Bottomfade-dark-bottomlinear-gradient(0deg,rgba(9,9,11,0.80) 0%,rgba(9,9,11,0.4) 50%,transparent 100%)

Textures

Repeating backgrounds.

NameSlugValue
Checkerboardcheckerboardrepeating-conic-gradient(var(--wp--preset--color--neutral-200) 0% 25%, transparent 0% 50%) 50% / 16px 16px
Gridgridconic-gradient(from 90deg at 1px 1px,transparent 90deg,var(--wp--custom--gradient-grid--color,var(--wp--preset--color--neutral-100)) 0) -1px -1px / var(--wp--custom--gradient-grid--size,40px) var(--wp--custom--gradient-grid--size,40px)
Diagonal Stripesdiagonal-stripesrepeating-linear-gradient(135deg,transparent 0px,transparent 10px,rgba(9,9,11,0.1) 10px,rgba(9,9,11,0.1) 20px)

Diagonal Cuts and Bands

Hard-edged shapes in primary-950 or neutral-0.

NameSlugValue
Diagonal Cut Dark Leftdiagonal-cut-dark-leftlinear-gradient(135deg,var(--wp--preset--color--primary-950) 0%,var(--wp--preset--color--primary-950) 50%,transparent 50%)
Diagonal Cut Dark Rightdiagonal-cut-dark-rightlinear-gradient(-135deg,var(--wp--preset--color--primary-950) 0%,var(--wp--preset--color--primary-950) 50%,transparent 50%)
Diagonal Cut Light Leftdiagonal-cut-light-leftlinear-gradient(135deg,transparent 0%,transparent 50%,var(--wp--preset--color--neutral-0) 50%)
Diagonal Cut Light Rightdiagonal-cut-light-rightlinear-gradient(-135deg,transparent 0%,transparent 50%,var(--wp--preset--color--neutral-0) 50%)
Long Top Short Bottomlong-top-short-bottomlinear-gradient(180deg,var(--wp--preset--color--primary-950) 0%,var(--wp--preset--color--primary-950) 70%,transparent 70%)
Short Top Long Bottomshort-top-long-bottomlinear-gradient(0deg,var(--wp--preset--color--primary-950) 0%,var(--wp--preset--color--primary-950) 70%,transparent 70%)
Diagonal Triplediagonal-triplelinear-gradient(135deg,var(--wp--preset--color--primary-950) 0%,var(--wp--preset--color--primary-950) 33%,var(--wp--preset--color--primary-700) 33%,var(--wp--preset--color--primary-700) 66%,transparent 66%)
Layered Bandslayered-bandslinear-gradient(180deg,var(--wp--preset--color--primary-950) 0%,var(--wp--preset--color--primary-950) 25%,rgba(9,9,11,0.5) 25%,rgba(9,9,11,0.5) 75%,transparent 75%)

Overlays and Scrims

Dark overlays for text on images and video.

NameSlugValue
Vignette Verticalvignette-verticallinear-gradient(180deg,rgba(9,9,11,0.9) 0%,rgba(9,9,11,0.6) 30%,transparent 60%,rgba(9,9,11,0.6) 80%,rgba(9,9,11,0.9) 100%)
Vignette Radialvignette-radialradial-gradient(ellipse at center,transparent 0%,rgba(9,9,11,0.8) 100%)
Diagonal Vignettediagonal-vignettelinear-gradient(135deg,rgba(9,9,11,0.9) 0%,transparent 50%,rgba(9,9,11,0.9) 100%)
Scrim Bottomscrim-bottomlinear-gradient(180deg,transparent 0%,transparent 60%,rgba(9,9,11,0.95) 100%)
Scrim Topscrim-toplinear-gradient(0deg,transparent 0%,transparent 60%,rgba(9,9,11,0.95) 100%)
Spotlight Bottom Leftspotlight-bottom-leftradial-gradient(circle at 0% 100%,rgba(9,9,11,0.9) 0%,transparent 70%)
Spotlight Top Rightspotlight-top-rightradial-gradient(circle at 100% 0%,rgba(9,9,11,0.9) 0%,transparent 70%)
Cinematic Barscinematic-barslinear-gradient(90deg,rgba(9,9,11,0.9) 0%,transparent 40%,transparent 60%,rgba(9,9,11,0.9) 100%)

The Grid preset reads --wp--custom--gradient-grid--color when it is set, and otherwise uses neutral-100. The split presets read --wp--custom--body--background, which the dark mode styles set.

CSS Custom Properties

Gradient presets are available as CSS custom properties:

Copied!
CSS
var(--wp--preset--gradient--primary-700-500)var(--wp--preset--gradient--primary-500-300)var(--wp--preset--gradient--primary-transparent)var(--wp--preset--gradient--primary-foreground)var(--wp--preset--gradient--body-heading)var(--wp--preset--gradient--surface-border)var(--wp--preset--gradient--background-transparent)var(--wp--preset--gradient--transparent-background)var(--wp--preset--gradient--fade-left)var(--wp--preset--gradient--fade-right)var(--wp--preset--gradient--checkerboard)var(--wp--preset--gradient--grid)var(--wp--preset--gradient--diagonal-cut-dark-left)var(--wp--preset--gradient--diagonal-cut-dark-right)var(--wp--preset--gradient--diagonal-cut-light-left)var(--wp--preset--gradient--diagonal-cut-light-right)var(--wp--preset--gradient--fade-dark-top)var(--wp--preset--gradient--fade-dark-bottom)var(--wp--preset--gradient--long-top-short-bottom)var(--wp--preset--gradient--short-top-long-bottom)var(--wp--preset--gradient--vignette-vertical)var(--wp--preset--gradient--vignette-radial)var(--wp--preset--gradient--diagonal-vignette)var(--wp--preset--gradient--scrim-bottom)var(--wp--preset--gradient--scrim-top)var(--wp--preset--gradient--diagonal-triple)var(--wp--preset--gradient--layered-bands)var(--wp--preset--gradient--spotlight-bottom-left)var(--wp--preset--gradient--spotlight-top-right)var(--wp--preset--gradient--cinematic-bars)var(--wp--preset--gradient--diagonal-stripes)

Example Usage

Copied!
CSS
.my-hero-section { background: var(--wp--preset--gradient--primary-700-500);}.my-overlay { background: var(--wp--preset--gradient--scrim-bottom);}

In block markup, a preset gradient is written as "gradient":"scrim-bottom", which adds the class has-scrim-bottom-gradient-background.

Creating Custom Gradients

In the Editor

  1. Select a block with a gradient background.
  2. In the gradient picker, click Custom.
  3. Use the gradient bar to:
    • Add color stops by clicking on the bar.
    • Drag stops to adjust positions.
    • Click a stop to change its color.
    • Change the gradient type (linear or radial).
    • Adjust the angle for linear gradients.
  4. The custom gradient is saved with the block.

In theme.json (Developers)

Add gradients to the settings.color.gradients array in a child theme:

Copied!
JSON
{ "settings": { "color": { "gradients": [ { "slug": "my-brand-blend", "name": "My Brand Blend", "gradient": "linear-gradient(135deg, var(--wp--preset--color--primary-500) 0%, var(--wp--preset--color--primary-900) 100%)" } ] } }}

Gradient Use Cases

Use CaseRecommended Presets
Hero section backgroundsPrimary 700/500, Primary Foreground, Diagonal Triple
Image overlays (readability)Scrim Bottom, Scrim Top, Fade Dark Bottom, Vignette Radial
Subtle section tintsPrimary Transparent, Surface/Border
Overlapping cards between sectionsBackground/Transparent, Transparent/Background
Decorative backgroundsGrid, Checkerboard, Diagonal Stripes
Section transitionsLong Top Short Bottom, Short Top Long Bottom, Diagonal Cut presets

Gradients and Dark Mode

Accessibility Notes

When using gradients as backgrounds for text:

Next Steps

Borders

Default Border Values

PropertyDefault ValueDescription
Width1pxStandard border thickness
StylesolidBorder line style
Colorneutral-200Light gray border color
Radius6pxCorner rounding

Border Radius

The default border radius of 6px provides a subtle, modern rounding to elements. This value applies to:

Applying Border Radius in the Editor

  1. Select a block that supports border settings.
  2. In the block settings sidebar, find the Border section.
  3. Click the Radius control.
  4. Enter a value or use the slider.
  5. For individual corner control, click the unlink icon to set each corner independently.

Common Radius Values

UsageRecommended Value
Cards and panels6px (default)
Buttons6px (default) or pill (9999px)
Input fields6px (default)
Avatars and circular elements50%
Subtle rounding4px
No rounding0px

Border Width

The default border width of 1px provides a clean, subtle boundary. Blocks that support borders allow you to adjust the width:

  1. Select the block.
  2. In the Border section of block settings, click the width control.
  3. Enter a pixel value.
UsageWidth
Standard card borders1px
Emphasis borders2px
Decorative dividers2px–4px
Heavy separators4px–8px

Border Color

The default border color is neutral-200, a light gray that provides subtle separation without visual noise.

Changing Border Color

  1. Select a block with border support.
  2. In the Border section, click the color swatch.
  3. Choose from the preset palette or enter a custom color.
ContextRecommended Color
Default borders (light mode)neutral-200
Active/focused elementsprimary-500
Success indicatorssuccess-500
Warning indicatorswarning-500
Error indicatorserror-500
Subtle separationneutral-100

Border Style

The default border style is solid. Other CSS border styles are available through custom CSS:

StyleAppearanceUsage
solidContinuous lineDefault, most common
dashedDashed linePlaceholder areas, drop zones
dottedDotted lineSubtle separation, decorative
noneNo borderRemove inherited borders

Using Borders in the Editor

Adding a Border to a Block

Add a border and radius from the Border & Shadow panel.

  1. Select a block (Group, Column, Image, or similar).
  2. In the right sidebar, expand the Border section.
  3. Set the Width (for example, 1px).
  4. Set the Color using the color picker.
  5. Optionally adjust the Radius for rounded corners.

Individual Side Borders

For blocks that support it, you can set borders on individual sides:

  1. In the Border section, click the unlink icon.
  2. Set border properties for Top, Right, Bottom, and Left independently.
  3. This allows effects like a left accent border or bottom divider.

Example: Left Accent Border

A common design pattern uses a thick left border for emphasis:

This creates a visual accent strip on the left edge of a quote or callout.

CSS Custom Properties

Border tokens are available as CSS custom properties:

Copied!
CSS
var(--wp--custom--border--width) /* 1px */var(--wp--custom--border--style) /* solid */var(--wp--custom--border--color) /* var(--wp--preset--color--neutral-200) */var(--wp--custom--border--radius) /* 6px *//* Usage example */.my-element { border: var(--wp--custom--border--width) var(--wp--custom--border--style) var(--wp--custom--border--color); border-radius: var(--wp--custom--border--radius);}

theme.json Configuration

Border settings are defined in theme.json:

Copied!
JSON
{ "settings": { "border": { "color": true, "radius": true, "style": true, "width": true }, "custom": { "border": { "width": "1px", "style": "solid", "color": "var(--wp--preset--color--neutral-200)", "radius": "6px" } } }}

The border defaults are custom tokens in settings.custom.border, not a global styles.border rule. WordPress outputs them as --wp--custom--border--width, --wp--custom--border--style, --wp--custom--border--color, and --wp--custom--border--radius. Blocks and elements opt in by referencing them. For example, styles.elements.button and core/preformatted use var(--wp--custom--border--radius).

Borders and Dark Mode

Dark mode remaps the palette shades (a light shade swaps with its dark counterpart), so a border set to neutral-200, including --wp--custom--border--color, turns dark automatically. Borders stay visible in both color modes without extra CSS. See Dark Mode.

Design Guidelines

When to Use Borders

When to Use Shadows Instead

Combining Borders and Shadows

Borders and shadows can work together. A common pattern is a light border combined with a subtle shadow:

Copied!
CSS
.card { border: 1px solid var(--wp--preset--color--neutral-200); box-shadow: var(--wp--preset--shadow--xs); border-radius: var(--wp--custom--border--radius);}

Next Steps

Layout

Layout Dimensions

SettingValueDescription
Content Size720px (max)Maximum width for standard content blocks.
Wide Size1200px (max)Maximum width for wide-aligned blocks.

Both values are min() expressions, so on narrow screens they shrink to the viewport minus the lg spacing step on each side:

Copied!
JSON
contentSize: min(calc(100% - var(--wp--preset--spacing--lg,3rem) * 2), 720px)wideSize: min(calc(100% - var(--wp--preset--spacing--lg,3rem) * 2), 1200px)

Content Size

The content size (720px) determines the maximum width of blocks at their default alignment. This creates a comfortable reading line length for body text and standard content.

Blocks aligned to “None” or “Default” will not exceed this width.

Wide Size

The wide size (1200px) determines the maximum width of blocks aligned to “Wide.” This allows certain elements to break out of the standard content column for visual emphasis while still maintaining some margin from the viewport edges.

Full Width

Blocks aligned to “Full width” ignore both content and wide size constraints, spanning the entire viewport width edge to edge.

Alignment Options

WordPress blocks support several alignment options that interact with the layout settings:

Content, wide, and full-width alignment.

AlignmentBehaviorMax Width
None (default)Contained within content width720px
WideBreaks out to wide width1200px
Full widthSpans the entire viewport100vw
LeftFloats left within content width—
RightFloats right within content width—
CenterCentered within content width720px

Configuring Layout in the Editor

Global Layout Settings

  1. Open the Site Editor (Appearance → Editor).
  2. Click the Styles icon.
  3. Navigate to Layout.
  4. Adjust the Content width and Wide width values.
  5. Set root-level Padding (the space between content and viewport edges).
  6. Save your changes.

Per-Block Layout Settings

Container blocks (Group, Columns, Cover) can override global layout:

Override content and wide sizes on a single block.

  1. Select the container block.
  2. In the block settings sidebar, find Layout.
  3. Choose the layout type:
    • Constrained — Blocks inside respect content and wide width limits.
    • Flow — Blocks stack vertically without width constraints.
    • Flex — Blocks arranged using flexbox (rows or columns).
    • Grid — Blocks arranged in a CSS grid layout.
  4. Optionally override the content width and wide width for this specific container.

Layout Types

Constrained Layout

The default layout type for most containers. Blocks inside are constrained to the content width unless individually aligned wider.

Copied!
Markdown
┌─────────────────────────────────────────────┐ ← Viewport│ ┌───────────────────────────────────┐ │ ← Wide (1200px)│ │ ┌───────────────────────┐ │ │ ← Content (720px)│ │ │ Standard block │ │ ││ │ └───────────────────────┘ │ ││ │ │ ││ │ Wide-aligned block │ ││ └───────────────────────────────────┘ ││ ││ Full-width block │└─────────────────────────────────────────────┘

Flow Layout

Blocks stack vertically and fill the available width of their container. No width constraints are applied.

Flex Layout

Enables flexbox-based layouts for horizontal or vertical arrangements:

Grid Layout

Enables CSS Grid-based layouts:

Root-Level Padding

Root padding adds space between the content and the viewport edges, preventing content from touching the screen on smaller devices:

Copied!
JSON
{ "styles": { "spacing": { "padding": { "right": "var(--wp--preset--spacing--lg)", "left": "var(--wp--preset--spacing--lg)" } } }}

The root padding is the lg step, which is fluid: 24px on phones, up to 48px on wide screens. See Spacing.

The useRootPaddingAwareAlignments setting ensures full-width blocks can still stretch edge to edge while content blocks respect the root padding.

Full-Width Blocks Inside the Main Element

Templates wrap content in main.site-main. When that element carries root padding (has-global-padding), its full-width children cancel it with negative margins equal to --wp--style--root--padding-left and --wp--style--root--padding-right (style.css). Core does the same for .has-global-padding > .alignfull.

Without this rule, every nested full-width group added another layer of root padding and squeezed content on phones. The fix shipped in 1.0.1.

Responsive Behavior

The layout system adapts to different viewport sizes:

Full-width blocks always span the entire viewport regardless of size.

theme.json Configuration

Layout settings are defined in theme.json:

Copied!
JSON
{ "settings": { "layout": { "contentSize": "min(calc(100% - var(--wp--preset--spacing--lg,3rem) * 2), 720px)", "wideSize": "min(calc(100% - var(--wp--preset--spacing--lg,3rem) * 2), 1200px)" }, "useRootPaddingAwareAlignments": true }}

CSS Custom Properties

Layout dimensions are available as CSS custom properties:

Copied!
CSS
var(--wp--style--global--content-size) /* up to 720px */var(--wp--style--global--wide-size) /* up to 1200px */var(--wp--style--root--padding-left) /* lg step */var(--wp--style--root--padding-right) /* lg step */

Layout Best Practices

Content Width (720px)

The 720px content width is optimized for:

When to Use Wide Alignment

Wide alignment (1200px) works well for:

When to Use Full Width

Full-width alignment is appropriate for:

Next Steps

Custom Blocks

Where the blocks live

Since Aegis Dash 1.1.0, all Aegis blocks come from Aegis Dash:

BlockNamespaceDocumentation
Countdownaegis/countdownCountdown
Slider and Slideaegis/slider, aegis/slideSlider and Slide
Toggle and Toggle Contentaegis/toggle, aegis/toggle-contentToggle
Related Postsaegis/related-postsRelated Posts
Mapaegis/mapMap
Modalaegis/modalModals

The first four blocks used to be theme blocks. Their names, markup and CSS classes did not change, so saved content keeps working.

What the theme still does

Block feature settings

Turn block features on or off at Aegis → Blocks (Aegis Dash). Settings start off on a fresh install. See Custom Blocks in Aegis Dash and Block variations. Aegis Pro adds more extras, such as tabs and Compare; see Pro blocks.

Video

Aegis does not register aegis/video. Video uses WordPress core/video: the theme framework only adds responsive-embed support, and the Aegis Video add-on provides the player. See Core Video Block.

Next Steps

Core Video Block

Layer responsibilities

LayerEnhancement
Theme frameworkStyling, MediaElement skins (video.css)
Aegis Video add-onThe custom player, player styles and facades, the video type picker in the editor (YouTube / Vimeo / Audio / Bunny), and the schema markup extra
Aegis DashLists the Video feature toggles at Aegis → Blocks → Video and hosts the BunnyCDN card at Aegis → Connectors
Aegis ProBunnyCDN, chapters, engagement, marketing, analytics, advanced player extras, privacy, multi-audio, SEO sitemaps — see Video Stack

Custom player

The custom player, theater mode, keyboard shortcuts and player skins are provided by the free Aegis Video add-on, not the theme. Without the add-on, the Video block uses the standard WordPress player, styled by the theme.

Usage

  1. Insert the standard Video block (core/video) from the block inserter.
  2. Upload or embed a video as with any block theme.
  3. Configure Pro features in the block sidebar when Pro is active and the matching extra is on.
  4. Toggle player extras at Aegis → Blocks → Video. BunnyCDN Stream credentials and extras are at Aegis → Connectors → BunnyCDN.

Migrating legacy aegis/video content

Older sites may still contain aegis/video blocks. Replace them with core/video.

The editor also registers a deprecated aegis/video stub so unsaved legacy blocks can convert. See Updating and Pro Known Issues.

Next Steps

Enhanced Core Blocks

How Enhancements Work

The framework applies enhancements through:

No core block functionality is removed or broken. All enhancements are additive.

Enhanced Blocks

Each block below has a class in vendor/aegis/framework/src/CoreBlocks/ that filters its front-end output (render_block_core/{name}). That folder also holds IconBlockAttributes.php (extra attributes for Icon) and ImageLightbox.php (lightbox extras for Image), which are helpers, not separate blocks. Blocks not listed here, such as Gallery, Media & Text, Table, Pullquote, or Separator, have no framework class. They get at most theme.json styling and block styles.

Text Blocks

BlockEnhancements
ParagraphEnsures the wp-block-paragraph class, applies custom margin and padding, and fixes malformed URLs
HeadingCustom spacing, a unique id for anchor links, and better heading text on search results pages
ListFlexbox layout controls, custom spacing, and a URL formatting fix. Block styles add checklists, dashes, and more (see below)
CodeApplies the block’s margin settings to the <pre> element. Copy-to-clipboard control
DetailsCustom expand and collapse icons, custom padding, and a script for smooth open and close animation
ShortcodeRuns shortcodes in the block and strips the stray <p> tags WordPress adds

Media Blocks

BlockEnhancements
ImageShadow options, border radius, hover effects, aspect ratio presets. Lightbox overlay follows light/dark (or the Site Editor background). Expand-on-click trigger sits on the image, not the full-width figure. Image captions stay on the figure, not the overlay. The former Image Icon variation was removed — use core/icon. Extra lightbox features are gated at Aegis → Blocks → Lightbox — see Lightbox. The same Aspect Ratio / Height / Object Fit / Object Position inspector also applies to Pro aegis/image-compare (render_block_aegis/image-compare; height uses CSS custom properties on the wrapper)
IconWordPress Icon library (core/{name}) plus Aegis collections (social/{name}, Pro sets). Custom SVG, gradients, gallery, and currentColor for dark mode — see SVG Icons
CoverFallback placeholder image, custom padding, and z-index control through a CSS custom property
AudioStyled as a card in theme.json: Neutral 100 background, the theme border radius, and xs inner padding. The player fills the card and can shrink below core’s 300px minimum, so it fits narrow columns and phones. The caption sits inside the card at caption size, without the default caption padding. Overrides that need more than theme.json live in vendor/aegis/framework/public/css/core-blocks/audio.css, which loads only when an Audio block is on the page (and in the editor). Margin and padding are adjustable per block under Dimensions
VideoEnables responsive embeds and styles the video block and the standard WordPress player (video.css). The Aegis player comes from the Aegis Video add-on — see Core Video Block

Layout Blocks

BlockEnhancements
GroupminHeight, custom spacing, and accessibility handling when the HTML tag is <main>
ColumnsCustom margin, an is-stacked-on-mobile or is-not-stacked-on-mobile class, and the column count as a data attribute
ButtonsCustom margin and padding on the button group wrapper
ButtonCustom icons, responsive controls, CSS transforms, button text repair, and URL fixes
SpacerMerges margin settings and drops the fixed width when a responsive width is set
Template PartApplies color settings to the part wrapper and fires the aegis_before_{slug} and aegis_after_{slug} hooks (see Hook Patterns (Theme Injection Hooks)). Skip links are left untouched
BlockEnhancements
NavigationOverlay menu styles, CSS filters, dynamic submenu border CSS from theme.json, and accessibility fixes in the markup
Navigation SubmenuConverts color and spacing settings into CSS custom properties on the submenu list. Supports multi-column mega menus
Page ListApplies the block gap as a CSS custom property
SearchInput and button styling, shadow presets, custom box shadows, and the CSS search toggle
Social LinksReplaces inline hex colors with the matching palette variables, so icons follow style variations and dark mode
Social LinkRenders icons from the Aegis social icon set
Table of ContentsRebuilds the list from the page title and in-content headings, applies block gap, and detects sidebar placement

Post and Query Blocks

BlockEnhancements
Post TitleUses the posts page title on the blog index and sets a heading id from the anchor or text
Post ContentCustom spacing, an optional content limit, and the aegis_before_content / aegis_after_content hooks
Post ExcerptVisibility on singular pages, Read More link handling, length limits, and custom styling. Adds excerpt support to pages
Post Featured ImageBox shadows, CSS transforms, and CSS filters for normal and hover states
Post DateApplies custom margin to the wrapper
Post TermsCan rebuild the list to show all terms of a taxonomy, and styles terms as badges
Post AuthorCustom border and spacing; the name wrapper becomes a <span>
Post Comments FormConfigurable title heading tag (aegis_comments_form_title_tag) and the context core/comments needs
Post TemplateGrid or flex layout and spacing for each Query Loop item
QueryResponsive columns, gaps, featured-first, equal-height, no-results — gated at Aegis → Blocks → Query Loop. See Aegis Dash Query Loop.
Query PaginationMerges margin, padding, and border radius into the pagination <nav>
Query TitleRenders the posts page title on the blog index (and a placeholder in the editor) when WordPress outputs none
CalendarMoves color classes from the <table> to the wrapper so padding and margins display
Tag CloudEnforces a minimum font size from the block’s size settings

Block Styles

The framework registers these styles (vendor/aegis/framework/src/DesignSystem/BlockStyles.php). They appear in the Styles panel when you select a block:

Aegis adds extra styles to core blocks.

BlockStyles
Archive TitleSub-heading
ButtonsSurface
ButtonGhost
CodeSurface, Light, Dark
ColumnsSurface, Light, Dark
ColumnSurface, Light, Dark
Comment Author NameHeading
DetailsHeading (summary)
GroupSurface, Light, Dark
ListChecklist, Check outline, Check circle, Square, List heading, Dash, None
List ItemSurface
NavigationHeading
Page ListNone
ParagraphSub-heading, Notice, Heading
Post Author NameHeading
Post TermsList, Sub-heading, Badges
Post TitleSub-heading
Query PaginationBadges
Read MoreButton
Site TitleHeading
SpacerAngle, Curve, Round, Wave, Fade
Tag CloudBadges
QuoteSurface

Quote gets only the Surface style.

The framework also removes some core styles: Rounded and Default from Image and Site Logo, and Wide and Dots from Separator. Separator keeps only its default style.

Global Block Styling

Aegis applies consistent styling across all enhanced blocks through theme.json:

Per-Block Global Styles

You can override the default styling of any block type:

  1. Open the Site Editor (Appearance → Editor).
  2. Click the Styles icon.
  3. Navigate to Blocks.
  4. Search for or select a specific block type.
  5. Adjust colors, typography, dimensions, and border settings.
  6. Save — all instances of that block type will update.

Block Supports

theme.json turns on appearance tools, border controls (color, radius, style, width), link color, custom spacing sizes, and custom duotones and gradients for every block. Per-block defaults (colors, typography, spacing, borders) for 35 core blocks live under styles.blocks in theme.json. The framework inspector controls (animation, box shadow, filters, transforms, responsive visibility, and more) are documented in Theme Inventory.

Responsive Behavior

Responsive improvements in the enhanced blocks:

Core Responsive States and Aegis Breakpoints

WordPress Core responsive style states (viewport-specific spacing, color, typography, and related supports in the Site Editor) apply to blocks that use standard block supports. Aegis continues to provide complementary controls Core does not fully replace:

Responsive settings at the Aegis breakpoints.

ConcernHandled by
Per-viewport styles on standard supportsCore responsive style states
Show/hide by viewport (aegis-hide-mobile, and related)Aegis visibility
Display, order, and width per deviceAegis Display panel
Landscape / tablet editor breakpointsAegis responsive breakpoint UI
Query column counts per breakpointAegis Query layout

Keep both systems. Prefer Core for ordinary style changes; use Aegis for visibility, layout, and query column behavior. If editor preview controls look duplicated after a WordPress update, see Common Issues.

core/breadcrumbs receives theme.json styles and the breadcrumbs.css stylesheet (also applied when .rank-math-breadcrumb, .seopress-breadcrumbs, #breadcrumbs, or .yoast-breadcrumbs markup is present; separators styled via Rank Math .separator and SEOPress .breadcrumb-sep; Yoast current crumb via .breadcrumb_last without a forced flex wrapper). WooCommerce Store Breadcrumbs (woocommerce/breadcrumbs) use woocommerce-breadcrumbs.css and wrap the delimiter in .aegis-breadcrumb-separator, same as classic Woo breadcrumbs. See WooCommerce Integration and SEO Schema Delegation.

Accessibility

Enhanced blocks maintain or improve the theme’s accessibility-ready foundation:

See Accessibility for landmarks, skip links, and content-author responsibilities.

Next Steps

Block Variations

When the Aegis Dash is active, enable or disable variations and sub-features at Aegis → Blocks. See Aegis Dash Block Variations.

Understanding Block Variations

A block variation is a preconfigured version of an existing block with specific attributes, inner blocks, or settings preset. They leverage core block infrastructure with framework-provided JavaScript and CSS.

Available Variations

VariationBase BlockDescription
Accordion Listcore/listAn expandable list where items collapse and expand.
Countercore/paragraphAn animated number counter that counts up on scroll.
Curved Textcore/paragraphText rendered along a curved SVG path.
Gridcore/groupA CSS Grid container with configurable columns.
Marqueecore/groupContinuously scrolling horizontal content.
Newslettercore/searchSearch form styled as an email signup (is-style-newsletter).
SVGcore/imageInline SVG markup on an Image block (is-style-svg). Decorative icons use core/icon instead — see SVG Icons.

Tip

Related posts: Use the aegis/related-posts theme block (see Custom Blocks). The former core/query Related Posts variation was removed. For advanced related-post querying on Query Loop, enable aegisProRelatedPosts on core/query with Aegis Pro.

Accordion List

An interactive list where each item can be expanded to reveal additional content.

The Accordion List variation.

Base Block

core/list with the is-style-accordion class. The style is registered once in PHP (AccordionList::register_style()), gated by Aegis → Blocks → Accordion. Other list styles (checklist, dash, and so on) stay on BlockStyles.

Features

Usage

  1. Insert the Accordion List block from the inserter.
  2. Add list items with your heading text.
  3. Each item expands to show content below it.
  4. Configure behavior in block settings (exclusive mode, initial state).

Comparison with Toggle Block

FeatureAccordion ListToggle Block
StructureList items as expand/collapseTwo inner views + switcher control
Content flexibilityText-focused listAny blocks in each view
Best forFAQ sectionsPricing monthly/yearly, compare plans, before/after

Counter

An animated number that counts up from zero to a target value when the element scrolls into view.

Counters animate up to their value when they scroll into view.

Base Block

core/paragraph with custom attributes and intersection observer script.

Features

Usage

  1. Insert the Counter block.
  2. Enter the target number.
  3. Optionally set a prefix (such as “$”) or suffix (such as “+”).
  4. Configure the animation duration.
  5. Style using standard Paragraph block controls.

Common Use Cases

Curved Text

Text rendered along a circular or curved SVG path for decorative headings and badges.

Curved Text and its settings.

Base Block

core/paragraph with SVG path rendering.

Features

Usage

  1. Insert the Curved Text block.
  2. Enter your text content.
  3. Adjust the curve radius and direction in block settings.
  4. Style with color and typography controls.

Grid

A CSS Grid container that arranges child blocks into a configurable grid layout.

Base Block

core/group with grid layout attributes.

Features

Usage

  1. Insert the Grid block.
  2. Add child blocks (cards, images, or any content).
  3. Configure columns count or minimum width.
  4. Adjust gap spacing.
  5. Items fill the grid automatically.

Grid vs Columns

FeatureGridColumns
Equal height itemsYes (automatic)Manual
Auto-flowing contentYesNo (fixed structure)
Dynamic item countYesFixed at creation
Best forCard layouts, galleriesFixed multi-column sections

Marquee

A continuously scrolling horizontal band of content that loops infinitely.

Enable extras at Aegis → Blocks → Marquee. See Aegis Dash Marquee.

Base Block

core/group with CSS animation and cloned content (layout.orientation is marquee). Not the Slider block’s type: marquee option.

Features

Usage

  1. Enable Marquee at Aegis → Blocks → Marquee.
  2. Insert the Marquee block (Group variation).
  3. Add content (logos, text, images, or any blocks).
  4. Set loop duration, direction, repeats, pause, and fade edges in Marquee Settings.

When Marquee is off, the variation is hidden from the inserter and is-marquee is stripped so saved blocks render as ordinary Groups.

Common Use Cases

Theme Feature Banner (patterns/cta/banner.php) is a scrolling announcement. Pro Feature Icon Boxes uses two logo marquees.

Newsletter

A Search block variation that turns the search form into an email signup field.

Enable extras at Aegis → Blocks → Newsletter. See Aegis Dash Newsletter.

Base Block

core/search with className is-style-newsletter. The style is registered once in PHP (Newsletter::register_style()), gated by Newsletter extras. Not a Group pattern and not the Modal Newsletter starter.

Features

Usage

  1. Enable Newsletter extras at Aegis → Blocks → Newsletter.
  2. Insert the Newsletter block (Search variation) or apply the Newsletter style to Search.
  3. Set button text (default Subscribe) and, with Custom Placeholder on, the email placeholder.
  4. Listen for aegis-newsletter-submit or replace the block with a form plugin when you need a real list API.

When Newsletter is off, the variation is hidden from the inserter and is-style-newsletter is stripped so saved blocks render as ordinary Search forms (search icon included).

Theme Newsletter CTA / Commerce Newsletter use this variation. The Newsletter pattern category (banner, inline, split) is Group + Button marketing CTAs, not this Search variation.

Common Use Cases

SVG

An Image block variation for inserting inline SVG markup (logos, wordmarks, illustrations). For library glyphs, use the WordPress Icon block (core/icon) instead — see SVG Icons. Media Library .svg uploads are Aegis → Settings, not this section.

Base Block

core/image with the is-style-svg class (inserter name SVG). The style is registered once in PHP (Svg::register_style()).

There is no parent SVG toggle. Enabling any extra at Aegis → Blocks → SVG implies the variation. Without the plugin, all extras behave as on.

ExtraInspector / renderOff fallback
svg_markupImplies the variation (paste markup stays available on saved blocks)Variation hidden from the inserter when no SVG extra is on
svg_maskPreview mask (CSS mask / currentColor)Inline <svg> instead of a mask
svg_onclickImage onclick kept on the inlined SVG or mask spanonclick not copied after the img is removed
svg_inlineRich-text Inline SVG format in paragraphsFormat hidden; CSS-masked has-inline-svg images stay as images
svg_inline_fileInline .svg files on Image, Button, Site Logo, Featured Imageimg src="*.svg" stays an image

Inline SVG files replace an image only when the image points to an .svg file inside wp-content. The Onclick setting is kept only when the user who saves the content has the unfiltered_html capability (administrators on single sites). SVG files cannot be uploaded to the Media Library: paste the markup instead.

Saved is-style-svg blocks still inline on the front end when the variation is implied off, so theme patterns (logo clouds, home brand marks) keep working.

Features

Usage

  1. Enable at least one extra at Aegis → Blocks → SVG (Paste Markup is enough).
  2. Insert the SVG variation (Image block).
  3. Paste SVG markup in SVG Settings.
  4. Adjust width and height in block settings.
  5. Optionally enable Mask Mode so the glyph follows text color.

Inserting Variations

Block variations appear in the block inserter alongside regular blocks:

  1. Open the block inserter (+).
  2. Search for the variation name (for example, “Counter” or “Marquee”).
  3. Click to insert.

Some variations also appear under their parent block in the inserter hierarchy.

Next Steps

WooCommerce Integration

Requirements

WooCommerce Templates

FSE templates remain in the theme (templates/ + theme.json). They are hidden from the Site Editor template picker when WooCommerce is inactive.

Aegis includes dedicated WooCommerce templates that replace the default WooCommerce page layouts:

TemplateFilenamePurpose
Product Archivearchive-product.htmlThe main shop page showing all products.
Single Productsingle-product.htmlIndividual product detail pages.
Product Search Resultsproduct-search-results.htmlResults from product-specific searches.
Product Searchsearch-product.htmlAlternate product search template (search-product).
Product Categorytaxonomy-product_cat.htmlProducts filtered by category.
Product Tagtaxonomy-product_tag.htmlProducts filtered by tag.
Cartpage-cart.htmlShopping cart page.
Checkoutpage-checkout.htmlStandard single-page checkout.
Multi-Step Checkoutpage-checkout-multi-step.htmlEnhanced multi-step checkout flow.
Order Confirmationorder-confirmation.htmlThank-you page after purchase.
My Accountpage-my-account.htmlCustomer account dashboard.
Wishlistpage-wishlist.htmlCustomer product wishlist (requires TI WooCommerce Wishlist + Aegis Dash pattern).

WooCommerce Block Patterns (Aegis Dash)

Block patterns that contain wp:woocommerce/* blocks (product grids, store headers, cart/checkout template patterns, etc.) are registered by the Aegis Dash from wp-content/plugins/aegis-dash/patterns/woocommerce/ only when WooCommerce is active. This prevents missing-block errors in the Site Editor when WooCommerce is not installed.

Generic commerce marketing patterns without WooCommerce blocks (for example trust badges, shipping info) remain in the theme patterns/commerce/ directory.

See Aegis Dash Patterns.

Multi-Step Checkout

The theme ships the Multi-Step Checkout FSE template (page-checkout-multi-step.html). Assign it in the Site Editor; checkout CSS/JS and integration gating are documented in Aegis Dash: WooCommerce Checkout.

The multi-step checkout.

Product Archive (Shop Page)

The product archive template includes:

The shop page in Aegis.

Customizing the Shop Layout

  1. Open the Site Editor.
  2. Navigate to Templates → Product Archive.
  3. Edit the product grid layout, filters, and sorting blocks.
  4. Save your changes.

Single Product Page

The single product template provides a complete product detail experience:

A single product page.

Shop templates use the WooCommerce Store Breadcrumbs block (woocommerce/breadcrumbs). Aegis styles them to match WordPress core/breadcrumbs:

No template markup changes are required — keep <!-- wp:woocommerce/breadcrumbs /--> in shop layouts.

Wishlist (TI WooCommerce Wishlist)

The Wishlist template (page-wishlist.html) provides a styled layout for saved products. It requires:

Image placeholder
Wishlist buttons and the wishlist page.

The wishlist template is hidden from the template picker when TI Wishlist or WooCommerce is inactive.

Setup

  1. Install and activate TI WooCommerce Wishlist.
  2. Create a page titled Wishlist (or your preferred title).
  3. Assign the Wishlist template to that page (Page → Template → Wishlist).
  4. Publish the page.
  5. Optional: add a link to the page in your header navigation or account menu.

The Wishlist template showing a saved product.

The template pattern renders the [ti_wishlistsview] shortcode, which displays the customer’s saved products. The Continue Shopping button links to the WooCommerce shop page when WooCommerce is active.

Shortcode

ShortcodePurpose
[ti_wishlistsview]Displays the wishlist table on the wishlist page.

If you customize the template in the Site Editor, keep the Shortcode block with [ti_wishlistsview] in the main content area.

Wishlist Troubleshooting

Wishlist page is empty or shows raw shortcode text

Add to wishlist button missing on product pages

WooCommerce Block Patterns

Aegis includes product-focused patterns in the Commerce and Product categories:

Pattern TypeDescription
Product gridsShowcase featured products in various layouts.
Product heroLarge featured product with CTA.
Sale bannersPromotional banners for discounts.
Category navigationVisual category browsing grids.
Trust signalsShipping info, return policy, guarantee badges.
Cart cross-sellRecommended products for cart page.

WooCommerce Styling

All WooCommerce elements are styled to match the active style variation:

Price Display

Prices are styled with:

WooCommerce and Dark Mode

WooCommerce templates and elements fully support dark mode:

See Dark Mode for dark mode configuration.

Performance

WooCommerce pages use the same conditional asset loading as the rest of Aegis:

See Performance for the full performance strategy.

Customization Tips

Customizing the Cart Page

  1. Edit the Cart template in the Site Editor.
  2. Add cross-sell patterns above or below the cart block.
  3. Include trust signal patterns (shipping info, guarantees).

Customizing the Checkout Page

  1. Edit the Checkout or Multi-Step Checkout template.
  2. Add a progress bar if not already present.
  3. Include trust badges near the payment form.

Adding a Mini Cart

Include the WooCommerce Mini Cart block in your header template part:

  1. Edit the Header template part.
  2. Insert the Mini Cart block.
  3. Position it near the navigation.
  4. Save.

Troubleshooting

WooCommerce Templates Not Appearing

Checkout Not Working

Next Steps

Plugin Integrations (Framework Styling)

Integration styles use design tokens and adapt to style variations and dark mode. Styles load only when the plugin is active and its integration is enabled in Aegis → Integrations.

Framework-Integrated Plugins

PluginIntegration styling
WooCommerceShop, cart, checkout, and product styling (plugins/woocommerce/woocommerce.css) plus breadcrumbs (plugins/woocommerce/woocommerce-breadcrumbs.css). Detection is WooCommerce / WC() / WC_VERSION. Classic and Store Breadcrumb delimiters wrap in .aegis-breadcrumb-separator. Snippet locations aegis_before_woocommerce_checkout / aegis_after_woocommerce_checkout and aegis_before_woocommerce_cart / aegis_after_woocommerce_cart. See WooCommerce Integration.
Fluent FormsForm element and button styling (plugins/fluent-forms.css) adapting to theme design tokens and dark mode; deactivates default public CSS (fluentform_load_default_public). Detection is FLUENTFORM, FLUENTFORM_VERSION, or FluentForm\App\Modules\Form\Form. Pattern control (fluentforms_keep_patterns) unregisters plugin patterns at init priority 11 when enabled in Pro. Snippet locations aegis_before_fluentform / aegis_after_fluentform.
Fluent BookingCalendar and appointment booking styling (plugins/fluentbooking.css) adapting to theme design tokens and dark mode. Detection is FLUENT_BOOKING_VERSION or FluentBooking\App\App. Pattern control (fluentbooking_keep_patterns) unregisters plugin patterns at init priority 11 when enabled in Pro.
Gravity FormsForm element, input, and button styling (plugins/gravity-forms.css) adapting to theme design tokens and dark mode; deactivates default theme CSS (gform_disable_form_theme_css). Detection is GFForms, GFAPI, GF_MIN_WP_VERSION, or gravity_form(). Snippet locations aegis_before_gform / aegis_after_gform.
Ninja FormsForm element, input, and button styling (plugins/ninja-forms.css) adapting to theme design tokens and dark mode; deactivates default and opinionated plugin styles (nf-display, ninja-forms-display, ninja-forms-display-opinions, nf-display-opinions, nf-layout-front-end). Detection is Ninja_Forms, function_exists( 'Ninja_Forms' ), defined( 'NF_PLUGIN_VERSION' ), or defined( 'NF_VERSION' ). Snippet locations aegis_before_nf_form / aegis_after_nf_form.
LifterLMSCourse, lesson, and syllabus styling (plugins/lifterlms.css) adapting to theme design tokens and dark mode; registers theme support (lifterlms, lifterlms-sidebars), suppresses default sidebars (llms_get_theme_default_sidebar), and adds aegis-lifterlms-page body class on LifterLMS courses, lessons, memberships, quizzes, and archives. Pattern control (lifterlms_keep_patterns) unregisters plugin patterns at init priority 11 when enabled in Pro. Detection is LifterLMS, LLMS(), LLMS_VERSION, or LLMS_PLUGIN_FILE. Snippet locations aegis_before/after_llms_course and aegis_before/after_llms_lesson.
LearnDashCourse, lesson, topic, quiz, and profile styling (plugins/learndash.css) adapting to theme design tokens and dark mode; maps theme custom logo to Focus Mode (learndash_focus_header_logo_url, learndash_focus_mode_logo), sets Focus Mode logo alt text (learndash_focus_header_logo_alt) to site name, and adds aegis-learndash-page body class on LearnDash content. Pattern control (learndash_keep_patterns) unregisters plugin patterns at init priority 11 when enabled in Pro. Detection is LEARNDASH_VERSION, class_exists( 'SFWD_LMS' ), defined( 'LEARNDASH_LMS_PLUGIN_DIR' ), or function_exists( 'learndash_init' ). Snippet locations aegis_before/after_learndash_course, aegis_before/after_learndash_lesson, aegis_before/after_learndash_topic, and aegis_before/after_learndash_quiz. The theme framework itself fires aegis_learndash_focus_header and aegis_learndash_focus_footer in Focus Mode.
Sensei LMSCourse, lesson, quiz, and progress styling (plugins/sensei-lms.css) adapting to theme design tokens and dark mode; registers theme support (sensei, sensei-lms), disables default plugin styles (sensei_disable_styles), and adds aegis-sensei-page body class on Sensei courses, lessons, quizzes, questions, messages, archives, and taxonomies. Pattern control (sensei_keep_patterns) unregisters plugin patterns at init priority 11 when enabled in Pro. Detection is Sensei_Main, Sensei(), Sensei, SENSEI_VERSION, or SENSEI_PLUGIN_FILE. Snippet locations aegis_before/after_sensei_course, aegis_before/after_sensei_lesson, and aegis_before/after_sensei_quiz.
Easy Digital DownloadsDownload, checkout, cart, and purchase-form styling (plugins/edd/edd.css). Detection is Easy_Digital_Downloads, EDD(), or EDD_VERSION. Snippet locations aegis_before_edd_download / aegis_after_edd_download.
AffiliateWPAffiliate Area and login/register form styling (plugins/affiliate-wp.css). Detection is Affiliate_WP, affiliate_wp(), or AFFILIATEWP_VERSION. Skips bundled affwp-forms CSS on the frontend (admin keeps it). Snippet locations aegis_before_affwp_dashboard / aegis_after_affwp_dashboard.
Co-Authors PlusMulti-author core/post-author* replace when the Aegis Dash is absent. With the plugin active, the plugin owns guest URLs, CSS (public/css/co-authors-plus.css), and the optional Author Schema extra. The framework class does not emit JSON-LD.
Meta BoxField UI / frontend form styling (plugins/meta-box.css). Detection is RWMB_Loader or rwmb_meta() (including AIO). Also registers aegis/metabox block bindings and theme color palettes for Meta Box color pickers.
bbPressForum styling (new in 1.0.1) (plugins/bbpress.css, dequeues bbPress default CSS): circular avatars, content-scale type, theme form/editor controls, grid topic rows, tokenized posts, My Account–style member sidebar; FSE Page wrap via locate_block_template( $template, 'page', array( 'page.php' ) ). Since 1.0.1, empty Navigation blocks show a short sample menu instead of listing every page (theme NavigationFallback).
Syntax Highlighting Code BlockRadius/padding/line-number overlay (plugins/syntax-highlighting-code-block.css) when Weston Ruter’s plugin is present. Detection is Syntax_Highlighting_Code_Block\PLUGIN_VERSION or boot(). Overlay injects on hljs / shcb- markup, not a plain wp-block-code. Optional settings.custom.highlightJs in theme.json locks the Highlight.js stylesheet and hides the plugin Customizer picker.
Code Block ProRadius/typography overlay (plugins/code-block-pro.css) when kevinbatdorf/code-block-pro is present. Detection is CBPRouter or the registered block — not CODE_BLOCK_PRO_VERSION.
BunnyCDNStream player embed styling (plugins/bunnycdn.css) when Aegis → Connectors → BunnyCDN is on (SaaS connector, not a WordPress plugin). Snippet locations aegis_before_video_block / aegis_after_video_block. Pro Stream API and editor panels live in Aegis Pro.

Integrations Dashboard (Aegis Dash)

Toggle state and credentials are owned by Aegis Dash (Aegis → Integrations / Connectors). This theme page only documents framework CSS that ships with the theme.

Aegis → Integrations shows which plugins the theme styles.

See Integrations Dashboard.

SEO Plugins

Visual breadcrumbs use core/breadcrumbs styled to theme tokens; Rank Math / SEOPress / Yoast trails share the same breadcrumbs stylesheet when present. Schema delegation and Pro video sitemaps are documented in Aegis Dash / Pro: SEO Schema Delegation.

How Integration Styles Load

  1. The Aegis Dash stores integration toggle state.
  2. The framework ServiceProvider checks toggles via Settings\Repository.
  3. Integration CSS loads inline only when both the third-party plugin and integration toggle are active.

See Performance for conditional asset loading.

Plugins Without Framework CSS

Plugins not listed above may still work with default styling. Apply custom CSS via Global Styles or child theme overrides. Request an integration through Getting Support.

PluginTheme integration
TI WooCommerce WishlistWishlist FSE template (theme) + wishlist block pattern (Aegis Dash, gated on WC + TI). No framework CSS. See WooCommerce Integration.
WooCommerce block patternsRegistered by Aegis Dash when WooCommerce is active — not in theme patterns/. See Aegis Dash Patterns.
FluentCRM / WP FusionAegis → Integrations → CRM. FluentCRM video events are Pro (core/video). WP Fusion owns tag, list, and CRM logged-in conditions (catalog pickers; Lite counts as installed). No framework CSS.
Advanced Custom Fields / Secure Custom FieldsAegis → Integrations → Developer. Field visibility, Query Loop pickers, featured-image sources, and Pro video Dynamic Source. No framework CSS.

Next Steps

Accessibility

Accessibility Standards

Aegis targets:

Info

The theme provides landmarks, skip links, focus styles, keyboard support for interactive blocks, and reduced-motion hooks. Full WCAG conformance still depends on content created by site editors (alt text, heading hierarchy, link purpose, form labels, contrast of custom colors/media) and on runtime testing with sticky headers, plugins, and real viewports.

Semantic HTML

All Aegis templates and patterns use semantic HTML5 elements:

ElementUsage
<header>Site header and article headers
<nav>Navigation regions with ARIA labels
<main>Primary content area
<article>Individual posts and pages
<section>Thematic groupings of content
<aside>Sidebar and supplementary content
<footer>Site footer and article footers

Keyboard Navigation

All interactive elements are fully keyboard accessible:

Focus Styles

Aegis provides clearly visible focus indicators:

Visible focus styles for keyboard users.

Color and Contrast

The color system ensures sufficient contrast across all contexts:

RequirementStandardAegis Implementation
Normal text4.5:1 minimumDefault body/neutral-600+ (and AA-safe neutral-400) tokens on the default surface
Large text (18px+ bold, 24px+ regular)3:1 minimumDefault heading tokens meet or exceed 3:1
Interactive components3:1 minimumDefault buttons, links, and inputs target 3:1
Focus indicators3:1 minimumFocus outlines use primary tokens for clear contrast

Custom colors, covers, and media still need a contrast check.

Color Independence

Color is never used as the sole indicator of meaning:

ARIA Attributes

Aegis uses ARIA attributes to enhance screen reader experiences:

PatternARIA Implementation
Navigationaria-label identifying the nav purpose; header and footer menus have unique names (“Main menu”, the footer column headings, or “Footer menu N”)
Toggles (content switcher)role="tablist" / tab / tabpanel, aria-selected, aria-controls / aria-labelledby, aria-hidden on inactive views
Accordion Listaria-expanded on details/summary
Search dialog / Aegis Dash Modalrole="dialog", aria-modal, accessible name, focus trapping
Tabsrole="tablist", role="tab", role="tabpanel"
Slidersaria-roledescription, aria-label for controls
Live regionsaria-live for dynamic content updates
LandmarksProper landmark roles for page regions

A skip-to-content link is the first focusable element on every page:

The skip link appears on the first Tab press.

The framework injects the skip link after the header template part is rendered (SkipLink priority 11, TemplatePart priority 10). That order keeps <header role="banner"> as a sibling of the skip link, not nested inside it. Nesting the header inside the skip link hid header content (logo, navigation, dark-mode icons) from sighted visitors on the front end while the editor still looked correct.

The Skip to Content pattern remains available for templates that need an explicit skip link in markup (for example the Blank template, which has no header and therefore no injected skip link).

Headings

Aegis templates and stock patterns aim for a logical heading hierarchy:

Images and Media

Images

Videos

Animations

Forms

Stock Aegis demo forms use accessible names:

Dark Mode Accessibility

Dark mode maintains all accessibility standards:

See Dark Mode for dark mode configuration.

Testing Tools

Aegis uses automated accessibility testing during development:

ToolPurpose
pa11y-ciAutomated WCAG2AA testing in CI (.pa11yci.json, threshold 0) against home, ?p=1, search, ?page_id=2, and a missing post (404)
WPAudit AccessibilityAnalyzerStatic PHP/HTML checks, including skip-link detection in SkipLink.php and skip-to-content.php
Axe DevToolsBrowser-based accessibility auditing
WordPress Accessibility CheckerPlugin-level checks

Running pa11y Tests

Copied!
Shell
npm run test:a11y

Requires a running site at the URLs in .pa11yci.json (CI uses http://localhost:8080/; local wp-env often uses 8888 — override URLs as needed). See Testing.

Content Author Guidelines

To maintain accessibility, content authors should:

  1. Always add alt text to images that convey meaning; keep alt="" only when decorative.
  2. Use headings sequentially — one document <h1>; do not skip levels for visual effect. On Page No Title / Blank, supply the <h1> in content.
  3. Write descriptive link text — avoid “click here” or bare # destinations.
  4. Provide captions for videos and audio content.
  5. Use sufficient color contrast when choosing custom colors (neutral-600+ for small text on light surfaces).
  6. Test with keyboard — Tab from load through skip link → main → footer; open/close search (Escape, focus return).
  7. Respect reduced motion — enable OS “reduce motion” and confirm carousels/marquees do not autoplay.

Conditionals extras

Block and page visibility extras at Aegis → Conditionals → Accessibility hide or visually clip content with CSS. They do not strip HTML on the server.

Color Scheme follows the Aegis visitor toggle (is-style-dark / is-style-light on body), then the theme default (default-mode-dark, default-mode-light, or default-mode-system), then the OS prefers-color-scheme when dark mode is off. That matches the header dark-mode toggle utilities in dark-mode.css.

On posts, those classes are added to the existing core/post-content wrapper. Hook patterns wrap the whole pattern. Turning an extra off skips both the classes and the CSS.

See Aegis Dash Conditional Logic.

Next Steps

Performance

Zero-Base Loading Strategy

Traditional themes load their entire stylesheet and script bundle on every page, regardless of what the page actually uses. Aegis takes the opposite approach:

  1. Default state: No theme CSS, no theme JS, no web fonts loaded.
  2. Block detection: During rendering, Aegis detects which blocks are present on the page.
  3. Conditional loading: Only the styles and scripts required by those blocks are enqueued.
  4. Result: Pages that use only core blocks may load with zero theme-specific assets.

What This Means in Practice

Page ContentAssets Loaded
Simple page with only paragraphs and imagesZero theme CSS/JS (core styles only)
Page with a Slider blockSlider CSS + Slider JS only
Page with Countdown + ToggleCountdown CSS/JS + Toggle CSS/JS
WooCommerce product pageWooCommerce integration styles only

Conditional Asset Loading

How It Works

The asset loading system operates in three phases:

  1. Registration — All available assets are registered with WordPress but not enqueued.
  2. Detection — Block parsing identifies which blocks and variations are present in the content.
  3. Enqueueing — Only the assets required by detected blocks are added to the page.

Block-Level Granularity

Each custom block and enhanced core block declares its own dependencies:

Copied!
JSON
// Example: Slider block registers its own assets'style' => 'aegis-slider', // Frontend CSS'script' => 'aegis-slider', // Frontend JS'editor_style' => 'aegis-slider-editor', // Editor-only CSS

These assets are only loaded when the block appears on the page.

Plugin Integration Styles

Plugin-specific compatibility styles follow the same pattern:

Font Loading Strategy

Fonts are a significant performance factor. Aegis optimizes font loading:

Self-Hosted Fonts

All fonts (Lexend, Lexend Deca, JetBrains Mono) are served from the theme directory:

Variable Fonts

Using variable font files reduces the number of HTTP requests:

Font Display Strategy

Fonts use font-display: swap:

Conditional Font Loading

theme.json declares the font faces, and browsers download a woff2 file only when text on the page uses that family:

Image Optimization

Aegis supports WordPress native image optimization:

Video Facades

With the Aegis Video add-on active, the Video block uses a facade pattern:

  1. A lightweight thumbnail image is displayed initially.
  2. The video player (iframe or native) loads only when the user clicks play.
  3. This eliminates heavy third-party script loading on page load.

Facades only play YouTube (youtube.com, youtube-nocookie.com) and Vimeo (player.vimeo.com) player URLs over HTTPS. Other embeds render as normal, without a facade.

Pattern and Icon Loading

Since 1.0.2, Aegis no longer runs every pattern file or lists every icon on each request.

ItemWhat Aegis doesCache
PatternsReads only each file’s header and registers the pattern with its file path. WordPress runs a pattern file only when its content is used.aegis_pattern_headers option (not autoloaded)
IconsLists each icon folder’s SVG file names once (about 5,700 files)aegis_icon_files option (not autoloaded)

How the caches stay current:

The gain is largest on hosts that restrict file access with open_basedir, where each file check is costly. WooCommerce’s variation scripts (underscore, wp-util, wc-add-to-cart-variation) also load only where a variable product form needs them.

You do not need to clear these caches. Edits to a pattern’s content show right away. A changed header (title, categories, slug) is picked up the next time the editor, REST API, or WP-CLI loads the pattern list.

Critical Rendering Path

Aegis minimizes render-blocking resources:

Resource TypeLoading Strategy
Theme CSSConditional, only per-block styles
Theme JSDeferred, conditional per-block
FontsPreloaded for above-the-fold content
ImagesLazy loaded below the fold
VideosFacade until interaction
AnalyticsAsync/defer, non-blocking

Measuring Performance

Core Web Vitals

Aegis is optimized for Google Core Web Vitals:

MetricTargetHow Aegis Helps
LCP (Largest Contentful Paint)< 2.5sMinimal CSS, font preloading, no JS blocking
FID (First Input Delay)< 100msDeferred JS, minimal main-thread work
CLS (Cumulative Layout Shift)< 0.1Explicit image dimensions, font-display swap
INP (Interaction to Next Paint)< 200msLightweight event handlers, no heavy frameworks

Testing Tools

ToolPurpose
WPAuditWordPress-specific performance audit
LighthouseGeneral web performance scoring
WebPageTestDetailed waterfall analysis
PageSpeed InsightsField data + lab data analysis

Running WPAudit

Copied!
Shell
composer test:wpaudit

See Testing for more details on running performance tests.

Caching Compatibility

Aegis works with all major caching solutions:

Bundle Size

The theme produces minimal asset bundles:

AssetTypical Size
Per-block CSS1–5 KB (gzipped)
Per-block JS2–10 KB (gzipped)
Font file (variable)30–60 KB (per family)
Total typical pageUnder 50 KB theme assets

Developer Performance Tips

When building custom pages or templates:

  1. Prefer core blocks — They have zero theme asset cost.
  2. Minimize custom block usage — Each custom block adds its CSS/JS bundle.
  3. Use patterns — Patterns are just block markup, not additional assets.
  4. Avoid global stylesheets — Do not add blanket CSS that loads everywhere.
  5. Test with Lighthouse — Verify performance after significant changes.

Next Steps

Hook Patterns (Theme Injection Hooks)

Framework-Fired Hooks

These hooks are fired automatically by vendor/aegis/framework CoreBlocks:

Template Part Hooks

For each template part slug (e.g. header, footer), the framework wraps output with:

HookFires
aegis_before_{slug}Before the template part renders
aegis_after_{slug}After the template part renders

Examples: aegis_before_header, aegis_after_footer.

Content Hooks

HookFires
aegis_before_contentBefore the main post content block output
aegis_after_contentAfter the main post content block output

Integration-Bridged Hooks

When the Aegis Dash integration is enabled, it bridges extra hooks from third-party plugins. They appear in the plugin’s injection catalog, but the theme alone does not fire them.

PluginBefore hookAfter hookFires on
Fluent Formsaegis_before_fluentformaegis_after_fluentformThe form output
Gravity Formsaegis_before_gformaegis_after_gformgform_get_form_filter
Ninja Formsaegis_before_nf_formaegis_after_nf_formninja_forms_before_form_display and ninja_forms_after_form_display
LearnDash courseaegis_before_learndash_courseaegis_after_learndash_courseA course page
LearnDash lessonaegis_before_learndash_lessonaegis_after_learndash_lessonA lesson page
LearnDash topicaegis_before_learndash_topicaegis_after_learndash_topicA topic page
LearnDash quizaegis_before_learndash_quizaegis_after_learndash_quizA quiz page
bbPress forumsaegis_before_bbpress_forumaegis_after_bbpress_forumThe forums loop
bbPress topicaegis_before_bbpress_topicaegis_after_bbpress_topicA single topic
Co-Authors Plusaegis_before_post_authoraegis_after_post_authorcore/post-author and co-authors/block

Other bridged locations cover WooCommerce checkout and cart, EDD, and the map block.

Hooks the Theme Fires Itself

The two LearnDash Focus Mode hooks are different: the theme framework fires them (Integrations/LearnDash.php), with or without the plugin.

HookArgument
aegis_learndash_focus_headerint $course_id
aegis_learndash_focus_footerint $course_id

Dynamic Template Parts

This follows the dynamically loading template parts in block themes approach from the WordPress Developer Blog.

What It Does

Templates keep a single core/template-part reference (for example header, footer, or sidebar). Before the block renders, Aegis lets you change the slug through a filter. If the alternate part file exists, WordPress loads it; otherwise the original part is kept.

Out of the box nothing changes visually. Child themes and custom plugins opt in via aegis_dynamic_template_part_slug.

How It Works

Copied!
JSON
flowchart TD renderBlock["core/template-part about to render"] --> filterHook["aegis_dynamic_template_part_slug filter"] filterHook -->|slug unchanged| defaultPart[Load original part] filterHook -->|new slug returned| fileCheck{"parts/{slug}.html exists?"} fileCheck -->|yes| altPart[Load alternate part] fileCheck -->|no| defaultPart
  1. render_block_data intercepts every block before render.
  2. For core/template-part on the front end, Aegis applies aegis_dynamic_template_part_slug.
  3. If the filter returns a different slug and parts/{slug}.html exists (theme or child theme), that slug is used.
  4. Skip-link injection and aegis_before_* / aegis_after_* hooks fire on whichever part actually renders.

Implemented by Aegis\Framework\DesignSystem\DynamicTemplateParts.

Filter Reference

Filteraegis_dynamic_template_part_slug
Parameters$slug (string), $parsed_block (array)
ReturnTemplate part slug string
DefaultThe slug from the block attributes (unchanged)

Return the original $slug (or a non-string / empty value) to leave the part unchanged. Only filesystem parts under the theme’s template-part folder (usually parts/) are accepted.

Examples

Add these through a plugin: a Functions (PHP) snippet in Aegis → Code Snippets or a site-specific plugin. See Where to Put Snippets. Create the matching parts/*.html files first.

Category-based sidebar on single posts

Assumes the template references sidebar (for example page-with-sidebar or a custom single layout). Create parts/sidebar-news.html, parts/sidebar-reviews.html, and so on as needed.

Copied!
PHP
add_filter( 'aegis_dynamic_template_part_slug', static function ( string $slug, array $parsed_block ): string { if ( 'sidebar' !== $slug || ! is_singular( 'post' ) ) { return $slug; } $post = get_queried_object(); if ( ! $post instanceof WP_Post ) { return $slug; } $parts_dir = get_block_theme_folders()['wp_template_part']; foreach ( get_the_category( $post->ID ) as $category ) { $candidate = 'sidebar-' . $category->slug; if ( locate_template( "{$parts_dir}/{$candidate}.html" ) ) { return $candidate; } } return $slug; }, 10, 2);

Minimal header on landing pages

Create parts/header-landing.html, then swap when the Blank or landing page template is in use:

Copied!
PHP
add_filter( 'aegis_dynamic_template_part_slug', static function ( string $slug ): string { if ( 'header' !== $slug ) { return $slug; } if ( is_page_template( 'blank' ) || is_page_template( 'page-landing' ) ) { return 'header-landing'; } return $slug; });

Create parts/footer-checkout.html:

Copied!
PHP
add_filter( 'aegis_dynamic_template_part_slug', static function ( string $slug ): string { if ( 'footer' !== $slug ) { return $slug; } if ( function_exists( 'is_checkout' ) && is_checkout() && ! is_wc_endpoint_url() ) { return 'footer-checkout'; } return $slug; });

Creating Alternate Parts

Prefer filesystem parts in the theme or child theme:

Copied!
Directory tree
parts/header-landing.htmlparts/footer-checkout.htmlparts/sidebar-news.html

You can use a thin pattern wrapper (same as the shipped header, footer, and sidebar parts) or full block markup.

Site Editor–created template parts are unreliable for custom slugs today (Gutenberg issue 57629). Control slugs via theme files whenever possible.

Maintenance Mode

This approach follows the on-brand maintenance mode for block themes pattern from the WordPress Developer Blog.

Important Distinction

This is not WordPress core update maintenance mode.

MechanismWhen it runsWhat visitors see
Core .maintenance / wp_is_maintenance_mode()During core, plugin, or theme updatesPlain “Briefly unavailable…” message (or wp-content/maintenance.php if present)
Aegis Maintenance template + optional hookWhen you intentionally enable itBranded Site Editor template with Global Styles

The snippets below do not call wp_is_maintenance_mode(). They serve a Site Editor template titled Maintenance for logged-out visitors.

What Aegis Ships

The maintenance template that ships with Aegis.

FileRole
templates/maintenance.htmlTheme template that loads the maintenance pattern
patterns/template/maintenance.phpBranded layout (header, cover message, login link, footer)

The pattern file header uses Slug: maintenance, but the framework registers patterns as {category}-{slug}. The effective pattern slug is template-maintenance, which is what the template references.

Edit copy and layout in Appearance → Editor → Templates → Maintenance. Global Styles (fonts, colors, spacing) apply automatically. You can also reuse the notice-under-construction notice pattern if you prefer a lighter placeholder inside another template.

How Activation Works

With the advanced hook in place:

Copied!
JSON
flowchart TD request[Front-end request] --> loggedIn{Logged in?} loggedIn -->|yes| normal[Normal template] loggedIn -->|no| findTpl[Find wp_template titled Maintenance for active theme] findTpl -->|found| serve[Serve maintenance via locate_block_template] findTpl -->|missing| normal

Logged-in users always see the live site so your team can work during an outage window.

Important: The hook looks for a database-backed wp_template post titled exactly Maintenance for the active theme. The shipped theme file alone does not satisfy that check until the template exists or is customized in the Site Editor (which stores it in the database).

Advanced: Add the Hook

Add the filter through a plugin: a Functions (PHP) snippet in Aegis → Code Snippets or a site-specific plugin. See Where to Put Snippets. Do not edit the Aegis theme files — updates would overwrite your changes.

Minimal approach

Suitable for short, routine update windows:

Copied!
PHP
/** * Serve the template titled "Maintenance" if the template exists. * * @param string $template The path to the template. * @return string The maintenance template path, or the original template. */function aegis_child_force_maintenance_template( $template ) { if ( is_user_logged_in() ) { return $template; } if ( ! current_theme_supports( 'block-templates' ) ) { return $template; } $maintenance_posts = get_posts( array( 'post_type' => 'wp_template', 'title' => 'Maintenance', 'post_status' => array( 'publish', 'draft' ), 'posts_per_page' => -1, 'no_found_rows' => true, ) ); $maintenance_post = null; foreach ( $maintenance_posts as $post ) { $theme_slugs = wp_get_post_terms( $post->ID, 'wp_theme', array( 'fields' => 'names' ) ); if ( in_array( get_stylesheet(), $theme_slugs, true ) ) { $maintenance_post = $post; break; } } if ( ! $maintenance_post ) { return $template; } $slug = $maintenance_post->post_name; return locate_block_template( $template, $slug, array( $slug ) );}add_filter( 'template_include', 'aegis_child_force_maintenance_template', 99 );

SEO-friendly headers approach

Use this when search traffic matters or maintenance windows may last longer. Headers are sent only when a maintenance template is actually served:

Copied!
PHP
/** * Serve the template titled "Maintenance" if the template exists. * Includes headers to signal temporary unavailability to search engines. * * @param string $template The path to the template. * @return string The maintenance template path, or the original template. */function aegis_child_force_maintenance_template( $template ) { if ( is_user_logged_in() ) { return $template; } if ( ! current_theme_supports( 'block-templates' ) ) { return $template; } $maintenance_posts = get_posts( array( 'post_type' => 'wp_template', 'title' => 'Maintenance', 'post_status' => array( 'publish', 'draft' ), 'posts_per_page' => -1, 'no_found_rows' => true, ) ); $maintenance_post = null; foreach ( $maintenance_posts as $post ) { $theme_slugs = wp_get_post_terms( $post->ID, 'wp_theme', array( 'fields' => 'names' ) ); if ( in_array( get_stylesheet(), $theme_slugs, true ) ) { $maintenance_post = $post; break; } } if ( ! $maintenance_post ) { return $template; } $slug = $maintenance_post->post_name; $maintenance_template = locate_block_template( $template, $slug, array( $slug ) ); if ( ! empty( $maintenance_template ) ) { nocache_headers(); status_header( 503 ); header( 'Retry-After: 3600' ); return $maintenance_template; } return $template;}add_filter( 'template_include', 'aegis_child_force_maintenance_template', 99 );

Activate and Deactivate

  1. Activate — In Appearance → Editor → Templates, create or keep a template titled exactly Maintenance (WordPress assigns the slug maintenance). Customize the shipped theme template if you prefer; customization stores a DB copy the hook can find.
  2. Deactivate — Rename or delete that customized Maintenance template. No code change is required once the hook is installed.

Testing

  1. Ensure the Maintenance template exists in the Site Editor and the hook is active.
  2. Log out (or use a private window) and visit the site — you should see the maintenance page.
  3. Log in and confirm the live site loads normally.
  4. When finished, rename or delete the Maintenance template to turn mode off.

SVG Icons

There is no Image Icon variation. Do not insert an Image block and style it as an icon.

Overview

Using the Icon Block

Choose an icon from the Icon block’s picker.

  1. Open the block inserter (+).
  2. Search for Icon.
  3. Insert the Icon block.
  4. Choose an icon from the library, or paste custom SVG in Custom SVG.
  5. Set size, text color, alignment, and (optionally) a link.

WordPress 7.1+ lists Aegis collections beside Core icons in the native picker. On WordPress 7.0, Aegis merges custom sets into the editor via REST when REST API Endpoint is enabled at Aegis → Blocks → Icon.

Custom SVG on the Icon Block

When Custom SVG is enabled at Aegis → Blocks:

  1. Select an Icon block.
  2. Open Custom SVG in the sidebar.
  3. Paste SVG markup. That markup overrides the selected library icon.

Prefer viewBox and fill="currentColor". Remove fixed width/height so the block can size the glyph.

SVG Image Variation

The SVG variation is an Image block (core/image with is-style-svg) for pasted inline SVG files (logos, wordmarks). It is not a replacement for the Icon block.

The svg style is registered once in PHP (Svg::register_style()), not via BlockStyles. Paste markup in SVG Settings. There is no Optimize SVG / SVGOMG control. An empty SVG block shows the Aegis placeholder (preview-only) instead of the Image upload UI.

Aegis → Blocks → SVG extras: Paste Markup (implies the variation), Mask Mode, Onclick, Inline SVG in text, Inline SVG files. See Block Variations.

Icon Library Collections

Collections register with wp_register_icon_collection() / wp_register_icon() when the Icon feature is enabled and WordPress is 7.1 or later.

Switch between icon libraries.

CollectionIDsSource
Corecore/{name}WordPress (wp-includes icon library)
Aegiswordpress/{name}Gutenberg-only SVGs that Core does not ship
Socialsocial/{name}Theme social set (brands Core does not include)
Paymentpayment/{name}, payment/{name}-outlineMono and mono-outline marks from svg-credit-card-payment-icons (currentColor; store patterns use *-outline)
Remix Iconremixicon/{name}Aegis Pro
Phosphor Duotonephosphor-duotone/{name}Aegis Pro
Heroiconsheroicons/{name}Aegis Pro
Featherfeather/{name}Aegis Pro
Hand Drawnhand-drawn/{name}Aegis Pro
Pluginsplugin/{name}Aegis Pro
Brandbrand/{name}Aegis Pro

The library opens quickly even with every Pro set installed (about 5,800 icons). When it asks for icons, Aegis loads only the requested collection or search results, not every icon file. The SVGs of each collection are cached in an aegis_icon_content_{collection} option (not autoloaded). File-backed Aegis icons are sanitized with the icons package (so shapes Core would strip still reach the editor). The cache rebuilds on its own when an icon is added, removed, or renamed, or when the theme is updated, so the first opening after a change takes a few seconds longer.

Aegis does not duplicate Core glyphs. A former wordpress/star-filled icon is stored as core/star-filled. Legacy saved IDs aegis/{set}/{name} still resolve when content is rendered or migrated.

Icon Properties

PropertyControlDescription
IconLibrary picker{collection}/{name} on the block icon attribute
SizeDimensionsWidth (height follows aspect-ratio: 1)
ColorText colorFill uses currentColor unless the SVG sets a non-ink color
GradientIcon gradient (optional)CSS mask gradient when enabled at Aegis → Blocks
AlignmentBlock toolbarLeft, center, right, or inline
LinkIcon linkOptional URL, target, and rel
GalleryIcon galleryAdds all-icons to render every glyph in the selected set

Color and Dark Mode

Icons use currentColor by default:

Stroked icons (outline sets) keep fill="none" and stroke="currentColor". Aegis re-renders non-core library icons on the front end so WordPress SVG sanitization does not strip stroke attributes.

For SVGs with multiple decorative colors, those fills are preserved. Theme color applies only to currentColor and literal ink (#000, black). Payment marks (payment/*) use currentColor so they follow light and dark mode like Social.

See Dark Mode.

Accessibility

Decorative icons

Next to text that already conveys the meaning: keep the SVG aria-hidden and do not add a label.

Informational icons

When the glyph is the only meaning: set an accessible label in Advanced settings (aria-label / <title>).

Icon buttons

A button that shows only an icon needs an aria-label describing the action (for example “Close”).

The skip-to-content link is injected after the header template part is rendered, so it never wraps the <header> landmark. If header icons (including dark-mode toggles) appear in the editor but not on the front end, see Common Issues.

Feature Toggles

With Aegis Dash active, Aegis → Blocks → Icon gates extras on core/icon (it does not register a second icon block):

ToggleEffect
Gradient ColorsGradient picker on the Icon block
AnimationsAnimation settings on icon elements
Custom SVGPaste SVG markup on the block
Icon GalleryGrid of every icon in the selected set
Responsive SizingPer-breakpoint icon size
REST API Endpointaegis/v1/icons for the button/tab picker (catalog + per-set lazy load); on WordPress 7.0 also merges sets into wp/v2/icons

Migrating Legacy Image Icons

Content that still uses <!-- wp:image --> with is-style-icon, or Icon blocks with aegis/{set}/{name} IDs, can be converted:

Copied!
Shell
wp aegis migrate-icons# WordPress Studio:studio wp aegis migrate-icons# Preview only:studio wp aegis migrate-icons --dry-run

The command updates posts, pages, other post types, and widget_block widgets. Review affected templates in the Site Editor afterward.

See Updating.

Adding Custom Icons to the Library

Pro (and child themes) add directories through the Aegis\Icons\Icon::FILTER (aegis_icon_sets). Each folder name becomes a collection slug; each *.svg file becomes {folder}/{basename}.

Requirements:

Icon Sizing

SizeTypical use
16pxInline with small text, metadata
20pxInline with body text
24pxStandard icon size, buttons
32pxMedium emphasis
48pxFeature icons, card headers
64pxLarge decorative icons
96px+Hero section decorations

Relative units (em / rem) scale with surrounding type.

Using Icons in Patterns

Theme patterns use <!-- wp:icon {"icon":"core/home"} /--> (or social/…, Pro sets, and so on). The Icon grid (library) pattern is a static sample of Core/Aegis glyphs.

Social Icons Block

The WordPress Social Icons block (core/social-links) is separate from the Icon library. Aegis still enhances it with styles, size presets, and hover options.

Performance

Next Steps

Lightbox

The lightbox is off by default: theme.json sets settings.lightbox.enabled to false. Turn Expand on click on for an individual image in the editor, or switch the Lightbox on for the Image block in Global Styles to enable it for every image.

The overlay scrim and close/prev/next controls follow the active color scheme (light or dark) using --wp--custom--body--background and --wp--custom--body--color. Changing the site background or text color in the Site Editor updates those tokens. Core bakes a light-mode hex into the overlay HTML; Aegis overrides it so dark mode is not stuck on the light surface.

Image captions stay on the figure in the content. They are not shown in the lightbox overlay.

Feature Toggles

Features are off by default when Aegis Dash is active. Enable All on the Lightbox section, or turn on individual extras:

Lightbox toggles in Aegis → Blocks.

ToggleWhat it adds
Gallery NavigationTreats lightbox images in the same Group, Row, Stack, Column, or Gallery as a set. Shows Core prev/next arrows and allows arrow-key navigation.
ZoomDouble-click, scroll wheel, and pinch-to-zoom with pan on the enlarged image. Clicking the image while zoomed does not close the overlay; swipe is paused while zoomed.
Thumbnail StripThumbnail row when a grouped set has 4 or more images.
Swipe GesturesGroups sibling lightbox images so Core’s touch swipe can move between them. Core arrows stay hidden unless Gallery Navigation is also on.

Slider lightbox (slider_lightbox) is a separate Pro feature on the Slider block, not this section.

Requirements

How grouping works

WordPress already groups images inside a Gallery block (Core sets galleryId and data-wp-interactive="core/gallery" on the gallery wrapper). Aegis grouping also covers lightbox images that share a Group (including Row and Stack layouts) or Column parent when Gallery Navigation, Swipe, or Thumbnails is on. Those wrappers get the same Core gallery interactivity context so prev/next, keyboard, and touch swipe work. Images in separate columns stay separate sets — use a Gallery block to group a row of images across columns.

Images in the same gallery open as one group.

Next Steps

Embed Template

Enhancements Over the Default

The custom embed template (embed-content.php at the theme root) provides the following improvements over the WordPress default:

How an Aegis post looks when embedded elsewhere.

Content Order

When an Aegis post is embedded on an external site, the content is rendered in this order:

  1. Featured image (linked to the post).
  2. Post title (linked to the post).
  3. Publication date (on single posts only).
  4. Excerpt.
  5. Primary taxonomy term (first category or tag).
  6. Footer with site icon and site name.
  7. Schema.org Article structured data (JSON-LD script).

Schema.org Structured Data

The embed template automatically generates Article schema.org structured data with the following properties:

PropertyValue Source
@typeArticle
headlinePost title
urlPost permalink
datePublishedPost publish date (W3C format)
dateModifiedPost modified date (W3C format)
authorPost author name
publisherSite name
publisher.logoSite icon (512px)
imageFeatured image URL
descriptionPost excerpt (stripped of HTML)

Customization

Filters

The embed template respects the following WordPress core filters:

Actions

File Location

The embed template file is located at the theme root:

Copied!
Directory tree
aegis/embed-content.php

WordPress automatically uses this file when it detects an embed content template in the active theme.

oEmbed card styling lives in the framework:

Copied!
Directory tree
vendor/aegis/framework/public/css/elements/oembed.css

It loads on enqueue_embed_scripts (handle aegis-oembed) alongside WordPress core wp-embed-template styles.

Next Steps

Navigation Styles

Available Navigation Styles

Slide-in Drawer

The Slide-in Drawer navigation style.

PropertyValue
Style nameslide-in
LabelSlide-in Drawer
BehaviorSlides in from the right edge of the viewport.

A fixed-position drawer that slides in from the right side when opened. The drawer is 300px wide and uses a smooth 0.3s ease transition.

Slide-in Left

PropertyValue
Style nameslide-in-left
LabelSlide-in Left
BehaviorSlides in from the left edge of the viewport.

Similar to the Slide-in Drawer but enters from the left side instead of the right. Useful for sites with left-to-right reading direction where the navigation should feel anchored to the starting edge.

Fullscreen Overlay

The Fullscreen Overlay navigation style.

PropertyValue
Style namefullscreen
LabelFullscreen Overlay
BehaviorCovers the entire viewport with a centered navigation layout.

A full-viewport overlay that fades in, centering the navigation content both horizontally and vertically. Uses opacity and visibility transitions for a smooth reveal.

Scroll Overlay

PropertyValue
Style namescroll
LabelScroll Overlay
BehaviorSlides down from the top of the viewport.

A fixed-position overlay that slides down from the top edge. Spans the full width of the viewport and is suitable for compact navigation menus.

Using Navigation Styles

In the Site Editor

Pick a navigation style in the block’s Styles section.

  1. Navigate to Appearance → Editor.
  2. Select the Navigation block in your header template part.
  3. In the block settings sidebar, find the Styles section.
  4. Select one of the four overlay variations.
  5. Save your changes.

In Block Markup

Navigation styles can be applied in template HTML using the WordPress block style class:

Copied!
HTML
<!-- wp:navigation {"className":"is-style-slide-in"} /-->

Technical Details

The navigation styles are registered by Aegis\Framework\DesignSystem\NavigationOverlay. Inline CSS is generated for each style variation and attached during block registration. Overlay stylesheet lives at vendor/aegis/framework/public/css/block-styles/navigation-overlay.css and loads when a core/navigation block (or overlay style class) is present.

Mobile Menu Submenus

In the overlay (mobile) menu, submenus start closed. Tapping an item that has sub-items, or the arrow beside it, slides in a panel with:

This applies to every Navigation block, including Page List items and the “Always” overlay setting. Keyboard users can press Escape to go back one level; Tab stays inside the open menu. Closing the menu resets it to the top level. Users who prefer reduced motion get the panels without the slide animation.

The behavior comes from vendor/aegis/framework/public/js/navigation-drilldown.js, which loads only on pages that have submenus, with its styles in core-blocks/navigation.css. If JavaScript is unavailable, the menu shows core’s fully expanded list.

Slide-Through Submenus in an Inline Menu

Since 1.0.2, a Navigation block that is always shown inline (no overlay) can use the same slide-through panels. Add is-drilldown to Advanced → Additional CSS class(es) on the Navigation block, and set its overlay to Off.

Inline drilldown menus work like the overlay menu, with two differences:

Each drilldown row is at least 44px tall, so it is easy to tap.

On desktop, submenus open to the right of their parent item in every Navigation block, including right-aligned menus (core WordPress opens them to the left there). Nested submenus open further to the right. In right-aligned menus, the last top-level item is the exception: its submenu opens toward the left so it stays on screen. These rules live in vendor/aegis/framework/public/css/core-blocks/navigation.css.

Accessibility

All navigation overlay variations:

Ensure your navigation menu includes a close button or mechanism that is keyboard-accessible when using overlay styles.

Next Steps

Common Issues

Installation Issues

Fatal Error After Activation

Symptom: A white screen or PHP fatal error appears after activating Aegis.

Cause: The vendor/ directory is missing. Aegis requires Composer dependencies to function.

Solution:

  1. Connect to your server via FTP or file manager.
  2. Verify that the vendor/ directory exists inside wp-content/themes/aegis/.
  3. If missing, download aegis.zip from the latest Aegis release (release packages include vendor/).
  4. Alternatively, run composer install --no-dev in the theme directory if you have SSH access.

Theme Does Not Appear in Theme List

Symptom: Aegis does not show up under Appearance → Themes.

Cause: The theme folder may be nested incorrectly or the style.css header is not readable.

Solution:

  1. Verify the theme is located at wp-content/themes/aegis/style.css (not nested deeper).
  2. Check file permissions — WordPress needs read access to the theme directory.
  3. Ensure the folder name is aegis (lowercase).

“This theme requires WordPress 7.0”

Symptom: WordPress prevents activation with a version requirement message.

Cause: Your WordPress version is older than the minimum required version.

Solution:

Update WordPress to version 7.0 or later via Dashboard → Updates.

“This theme requires PHP 8.1”

Symptom: WordPress prevents activation with a PHP version requirement message.

Cause: Your server PHP version is older than 8.1.

Solution:

  1. Check your PHP version in Tools → Site Health → Info → Server.
  2. Contact your hosting provider to upgrade PHP, or change the PHP version in your hosting control panel.

Editor Issues

Block Patterns Not Showing

Symptom: The pattern categories are empty or patterns do not appear in the inserter.

Cause: Pattern files may not have loaded correctly, or WooCommerce/plugin patterns are gated. Before Aegis 1.0.2 one theme pattern broke the whole list, and the Patterns tab stayed empty.

Solution:

  1. Update Aegis to 1.0.2 or later.
  2. Clear all caches (browser, page cache plugin, server cache).
  3. Deactivate and reactivate the theme.
  4. Ensure the theme patterns/ directory exists and contains PHP files.
  5. For WooCommerce shop patterns, install and activate WooCommerce and the Aegis Dash. See FAQ.
  6. Check the PHP error log for any pattern registration errors.

Site Editor Shows Blank Page

Symptom: Opening Appearance → Editor shows a blank or loading screen.

Cause: JavaScript errors, plugin conflicts, or insufficient server resources.

Solution:

  1. Open browser developer tools (F12) and check the Console tab for errors.
  2. Deactivate all plugins except WooCommerce (if used) and test.
  3. Increase PHP memory limit to 256 MB.
  4. Clear browser cache and try in an incognito window.

Templates Not Loading Correctly

Symptom: Pages show incorrect layouts or missing template parts.

Cause: Template customizations may be conflicting, or the template files are corrupted.

Solution:

  1. In the Site Editor, navigate to Templates.
  2. Select the problematic template.
  3. Click the Options menu (three dots) and select Clear customizations.
  4. Check if the issue resolves.
  5. If not, re-upload the theme files.

Editor Styles Missing Inside the Canvas

Symptom: Global Styles, icons, or Aegis inspector panels look unstyled or broken in the Post Editor or Site Editor, while the front end looks fine.

Cause: The block editor canvas is iframed; styles or scripts may target the wrong document.

Solution:

  1. Hard-refresh the editor and clear any object cache / CDN cache for admin assets.
  2. Confirm the issue persists with only Aegis (and WooCommerce if required) active.
  3. Check the browser console for failed CSS/JS loads or cross-frame errors.
  4. If you maintain custom editor scripts, query the editor canvas document rather than the parent document when reading DOM nodes inside the canvas.

Responsive Preview Mismatch

Symptom: Device preview or Landscape/Tablet controls disagree with the front end, or Core viewport styles and Aegis Display controls appear to fight each other.

Cause: Core responsive style states and Aegis visibility/layout breakpoints are separate systems.

Solution:

  1. Confirm which system you intended: Core for standard style supports; Aegis for hide/show, display/order/width, and query columns.
  2. Clear conflicting per-device Display values on the block if Core viewport styles already cover the change.
  3. Test the front end at the same widths (mobile, landscape ~480–767px, tablet ~768–1023px, desktop).
  4. See Enhanced Core Blocks for the supported relationship.

Icons Visible in the Editor but Missing on the Front End

Symptom: Icon blocks, header SVGs, or dark/light toggle glyphs render in the Site Editor but are invisible, clipped, or missing on the published page.

Cause: Two separate issues can look like a dark-mode failure:

  1. The skip-to-content link was prepended before the header template part was parsed, so the entire <header> nested inside .skip-link.screen-reader-text.
  2. Outline (stroked) icons lost stroke / fill="none" to Core SVG sanitization, or fills stayed hardcoded #000 instead of currentColor.

Solution:

  1. View page source: the skip link must be a sibling of <header role="banner">, not a parent of the header.
  2. Confirm Aegis SkipLink runs at priority 11 and TemplatePart uses the HTML tag processor (not wrapping the skip link as the landmark root).
  3. For custom collections, confirm the Icon block icon attribute is {collection}/{name} (for example social/facebook), not a removed Image Icon variation (is-style-icon).
  4. Hard-refresh and check that icon CSS loads on the front end (core-blocks/icon.css).
  5. See SVG Icons.

Icon Library Shows No Icons

Symptom: The Icon block’s Icon library lists its collections, but the icon grid keeps loading and never shows any icons, including under All and in search.

Cause: Before Aegis 1.0.2, each request for icons read every icon file of every collection, about 5,800 with the Pro sets. Slower hosts could not finish in time.

Solution:

  1. Update Aegis to 1.0.2 or later. The library then loads only the icons it shows and caches them.
  2. The first opening after an update or an icon change rebuilds the cache and can take a few seconds. Later openings take under a second.
  3. If it still does not load, check the browser’s Network tab for the wp/v2/icons request and the PHP error log.
  4. See SVG Icons.

SVG Image variation shows the media uploader or an Optimize SVG button

Symptom: Inserting the SVG Image variation opens Core’s image placeholder, or SVG Settings still offers Optimize SVG / SVGOMG.

Cause: The live inspector is svg-editor.js. An empty SVG uses the Aegis placeholder (preview-only). Optimize SVG was removed. A cached editor.js can still show the old bundled panel.

Solution:

  1. Hard-refresh the editor so svg-editor.js and bundled editor.js reload.
  2. Enable at least one extra at Aegis → Blocks → SVG (Paste Markup is enough).
  3. Paste markup in SVG Settings. Do not store an empty data:image/svg+xml URL.
  4. See Block Variations.

Slider Arrows and Dots Missing

Symptom: Slides stack or pack together with no arrows or dots, or Splide never initializes.

Cause: Saved Slides Per Page may be 3 on a block that only has three slides. Splide hides overflow UI when every slide is visible. Older templates still store perPage: 3 after the default changed to 1.

Solution:

  1. Select the Slider and set Slides Per Page to 1, or add more slides than perPage.
  2. Confirm arrows and dots are on in the inspector, and that Aegis → Blocks → Slider Navigation and Pagination extras are on.
  3. On the front end, confirm splide.js, splide.css, and the slider view script load.
  4. See Slider and Slide.

Display Issues

Fonts Not Loading

Symptom: Text displays in a system font instead of Lexend or Lexend Deca.

Cause: Font files may be missing, blocked by the server, or a caching issue.

Solution:

  1. Verify font files exist in assets/fonts/ within the theme directory.
  2. Check browser developer tools Network tab for failed font requests (404 errors).
  3. Ensure your server allows serving .woff2 files (check MIME types).
  4. Clear CDN cache if using a CDN.
  5. Disable any browser extensions that might block font loading.

Dark Mode Not Working

Symptom: The site stays in light mode regardless of settings.

Cause: The is-style-dark class is not being applied, or CSS is not loading.

Solution:

  1. Verify the is-style-dark class is applied to the appropriate element.
  2. Check if a caching plugin is serving a cached light-mode version.
  3. Inspect the element in browser developer tools to confirm the class is present.
  4. Clear all caches.

See Dark Mode for configuration details.

Style Variation Colors Not Applying

Symptom: Changing the style variation does not update the site colors.

Cause: Browser cache, page cache, or custom Global Styles overrides taking precedence.

Solution:

  1. Clear browser cache (Ctrl + Shift + R for hard refresh).
  2. Clear page cache plugins.
  3. Check if you have custom color overrides in Styles → Colors that take precedence.
  4. Reset Global Styles if necessary (Styles → Options → Reset to defaults).

Layout Breaking on Mobile

Symptom: Content overflows or layout breaks on small screens.

Cause: Content (images, tables, code blocks) may exceed the viewport width.

Solution:

  1. Ensure images do not have fixed widths larger than the viewport.
  2. Wrap wide tables in a Group block with overflow handling.
  3. Use responsive alignment (avoid fixed pixel widths on blocks).
  4. Test with browser developer tools responsive mode.

Performance Issues

Slow Page Load

Symptom: Pages take a long time to load despite the zero-base loading strategy.

Cause: External resources, unoptimized images, or plugin conflicts.

Solution:

  1. Run a Lighthouse audit to identify bottlenecks.
  2. Check for large unoptimized images.
  3. Verify that only necessary plugin scripts are loading.
  4. Enable page caching.
  5. Check server response time (TTFB).
  6. See Performance for theme optimization strategies.
  7. Enable plugin toggles at Aegis → Performance (oEmbed, dashicons, heartbeat, XML-RPC/head cleanup, embed facades, emoji with Pro) — see Aegis Dash Performance.
  8. For Query Loops, enable Query Loop Performance at Aegis → Performance; with Pro, configure per-block options in Query Performance (Pro).

Assets Loading on Every Page

Symptom: Theme CSS/JS files load on pages that do not use the corresponding blocks.

Cause: A plugin or custom code may be force-enqueueing styles.

Solution:

  1. Check if any plugins are enqueueing Aegis styles globally.
  2. Verify no custom code uses wp_enqueue_style for theme assets unconditionally.
  3. Use browser developer tools to identify which styles are loading and trace their source.

WooCommerce Issues

WooCommerce Templates Not Loading

Symptom: WooCommerce pages use generic layouts instead of the Aegis templates.

Cause: WooCommerce may be using legacy PHP templates instead of block templates.

Solution:

  1. Ensure WooCommerce is updated to version 8.0 or later.
  2. Check that WooCommerce block templates are enabled (not legacy mode).
  3. Navigate to WooCommerce → Settings → Advanced and verify page assignments.
  4. Clear WooCommerce transients.

Multi-Step Checkout Not Working

Symptom: The checkout displays as a single page instead of multiple steps.

Cause: The page is not using the multi-step checkout template, or the WooCommerce integration is off so checkout assets do not load.

Solution:

  1. Enable Aegis → Integrations → E-commerce → WooCommerce.
  2. Edit the checkout page.
  3. Change the template to Multi-Step Checkout.
  4. Or verify the template is correctly assigned in the Site Editor.

Wishlist Page Empty

Symptom: The wishlist page shows no products, displays [ti_wishlistsview] as plain text, or is blank.

Cause: The TI WooCommerce Wishlist plugin is missing, inactive, WooCommerce or the Aegis Dash is inactive, or the page is not using the Wishlist template.

Solution:

  1. Install and activate WooCommerce, the Aegis Dash, and TI WooCommerce Wishlist.
  2. Edit the wishlist page and confirm Template is set to Wishlist (visible only when dependencies are active).
  3. The Wishlist FSE template loads Aegis Dash’s template-page-wishlist pattern, which includes the [ti_wishlistsview] shortcode.
  4. Clear page and object caches, then reload the page while logged in as a customer who has saved items.

See WooCommerce Integration for full setup steps.

Shop or Product Patterns Missing

Symptom: WooCommerce block patterns (cart, checkout, product grids, store headers) do not appear in the pattern inserter.

Cause: WooCommerce block patterns are registered by the Aegis Dash only when WooCommerce is active.

Solution:

  1. Install and activate WooCommerce and the Aegis Dash.
  2. Confirm WooCommerce block templates are enabled.
  3. See FAQ and Aegis Dash Patterns.

Plugin Conflicts

General Debugging Steps

When you suspect a plugin conflict:

  1. Deactivate all plugins.
  2. Check if the issue resolves.
  3. Reactivate plugins one by one to identify the conflict.
  4. Report the conflict, with details, through Getting Support.

Common Conflicting Plugin Types

Update Issues

See Updating for detailed update troubleshooting, including failed updates and rollback procedures.

Getting Help

If your issue is not listed here:

  1. Search the Aegis documentation for similar reports.
  2. Check the FAQ for additional answers.
  3. Ask for help through Getting Support: the community forum for free users, or a support ticket with Aegis Pro. Include:
    • WordPress version
    • PHP version
    • Aegis version
    • Steps to reproduce
    • Expected vs. actual behavior
    • Error messages (from PHP error log or browser console)

FAQ

General Questions

What is Aegis?

Aegis is a WordPress Full Site Editing (FSE) block theme built for performance and flexibility. It provides a zero-base loading architecture, 60 style variations, 230 theme block patterns in 28 category folders (plus Aegis Dash and Pro patterns), and deep integration with the WordPress Site Editor.

What does “zero-base loading” mean?

Zero-base loading means the theme loads zero CSS, JavaScript, or font assets by default. Assets are only loaded when the page content requires them. A page using only core blocks may load with no theme-specific assets at all, resulting in exceptional performance.

Is Aegis free?

The Aegis theme is released under the GPL-2.0-or-later license. The companion Aegis Dash (free) and Aegis Pro (premium) extend the theme with additional blocks and features.

What is the difference between the theme, plugin, and Pro?

ProductIncludes
Aegis themeTemplates, patterns, style variations, design system, enhanced core/video styling, framework core-block enhancements, WooCommerce templates (plus fallback copies of six blocks that Aegis Dash now provides)
Aegis Dash (free)Aegis blocks (Countdown, Slider, Toggle, Related Posts, Map, Modal), admin dashboard, block toggles, snippets, conditionals, integrations, analytics
Aegis Pro (premium)Hook pattern CPT, video/BunnyCDN stack, query conditions, Pro blocks, block extensions, license — requires Aegis theme

See Aegis Dash FAQ · Pro docs.

Does Aegis work without the Aegis plugins?

Yes. The theme provides templates, patterns and style variations without the plugin. The Aegis blocks, the Aegis admin menu, analytics, snippets, and integration toggles need Aegis Dash. Pro features require Aegis Pro.

Why don’t third-party plugins pick up theme styles?

Integration toggles live in the Aegis Dash at Aegis → Integrations. Framework CSS ships with the theme and loads only when the matching toggle and dependency are active. See Plugin Integrations (Framework Styling) for the theme CSS inventory, and the Aegis Dash FAQ for per-plugin configuration.

Requirements

What version of WordPress do I need?

Aegis requires WordPress 7.0 or later. Native Icon library registration (wp_register_icon) needs WordPress 7.1 or later; on 7.0 Aegis still merges custom sets into the editor over REST. See SVG Icons.

What PHP version do I need?

Aegis requires PHP 8.1 or later.

Does Aegis work with PHP 8.2 or 8.3?

Yes. Aegis is compatible with PHP 8.1, 8.2, and 8.3.

Does Aegis require any specific hosting?

No. Aegis works on any hosting that meets the WordPress minimum requirements (PHP 8.1+, MySQL 5.7+ or MariaDB 10.3+). Shared hosting, VPS, and dedicated servers are all supported.

Design and Customization

How do I change the site colors?

Use the Site Editor (Appearance → Editor → Styles). You can either:

See Global Styles and Style Variations for details.

How do I change fonts?

Navigate to Appearance → Editor → Styles → Typography. You can change the font family, size, weight, and other properties for body text, headings, links, and buttons.

See Typography for the available font options.

How do I add icons?

Insert the WordPress Icon block (core/icon) and choose from the Core library or Aegis collections (social/…, Pro sets such as Remix Icon). There is no Image Icon variation. Paste custom SVG on the Icon block, or use the SVG Image variation (is-style-svg) for logos and illustrations (Aegis → Blocks → SVG).

See SVG Icons.

Why does an empty SVG Image block look like a placeholder instead of an upload button?

That is the Aegis empty canvas for is-style-svg. Paste markup in SVG Settings. The glyph is preview-only and is not saved. There is no Optimize SVG / SVGOMG control.

Why does the editor say a Button block contains unexpected or invalid content?

Button icon CSS variables (--wp--custom--icon--*) are editor preview only. They are not written into saved button HTML. Hard-refresh the editor after updating Aegis so icon-block-editor.js loads.

Why did the Pro Tabs block show as invalid?

Before theme 1.0.1, the theme’s icon extension wrote button-style icon variables (--wp--custom--icon--*) into the saved markup of each Tab (aegis/tab). Saved tabs did not contain those variables, so the editor flagged them as invalid. In 1.0.1 the icon extension skips aegis/tab, as it already did for Button, and the Tabs pattern parses cleanly. Hard-refresh the editor after updating so the new script loads. Tab icons on the front end come from the Tabs block’s own icon settings, so nothing visible changes. Aegis Pro is coming soon.

The footer’s Navigation block has no menu assigned. Instead of listing every published page, Aegis 1.0.1 shows a short sample menu. Select the Navigation block and choose or create a menu to replace it. See Template Parts.

Can I use custom fonts not included with the theme?

Yes. You can add custom fonts through WordPress Global Styles (Styles → Typography → Manage fonts) or by adding font files to the theme and registering them in theme.json.

How do I enable dark mode?

Dark mode is activated by applying the is-style-dark CSS class. This can be done globally via a template wrapper, per-page, or with a visitor toggle button. See Dark Mode for complete instructions.

Can I use different style variations on different pages?

Style variations apply globally to the entire site. However, you can customize individual page colors through per-block color settings or by using different templates with specific color configurations.

How do I create a custom page layout?

  1. Create a new page.
  2. Use the block inserter to add patterns from categories like Hero, Featured, CTA, and Testimonial.
  3. Customize each pattern to match your content.
  4. Alternatively, create a custom template in the Site Editor for reusable layouts.

Templates and Patterns

How many templates are included?

Aegis includes 50 templates: 10 WordPress hierarchy templates, 11 page and post layouts, 3 utility templates, 9 content archive layouts, and 17 WooCommerce templates. 40 of them are registered as custom templates in theme.json. See Template Reference.

How many patterns are included?

230 theme patterns in 28 category folders. The Aegis Dash adds Modal starters and WooCommerce patterns (gated on dependencies). Pro adds premium marketing layouts. See Pattern Reference for theme categories, Aegis Dash Patterns, and Pro Patterns.

Can I create my own patterns?

Yes. You can:

What is the Blank template for?

The Blank template provides an empty canvas with no header, footer, or wrapper. It is ideal for marketing landing pages, sales pages, or any page where you want complete control over the layout.

Blocks

What custom blocks does Aegis include?

Aegis Dash provides Countdown, Slider, Slide, Toggle, Toggle Content, Related Posts, Map and Modal (all blocks). The theme keeps fallback copies of the first six for now. Video uses WordPress core/video, enhanced by the framework; the Aegis Video add-on provides the player. Block feature toggles are at Aegis → Blocks.

Do I need Gutenberg plugin installed?

No. Aegis works with the block editor built into WordPress core. The Gutenberg plugin is only needed if you want access to experimental features before they are included in WordPress core releases.

Can I use third-party block plugins with Aegis?

Yes. Aegis is compatible with third-party block plugins. The theme styles are applied through design tokens, so most plugins will inherit appropriate styling.

WooCommerce

Does Aegis support WooCommerce?

Yes. The theme ships WooCommerce FSE templates. WooCommerce block patterns and multi-step checkout assets come from Aegis Dash when WooCommerce is active. See WooCommerce Integration and Aegis Dash WooCommerce Checkout.

Why don’t I see shop or product patterns in the inserter?

WooCommerce block patterns are registered by the Aegis Dash only when WooCommerce is active. Generic commerce marketing patterns (core blocks only) remain in the theme. See Aegis Dash Patterns.

Do I need WooCommerce installed for the theme to work?

No. WooCommerce is entirely optional. The theme works perfectly for blogs, portfolios, corporate sites, and other non-commerce sites.

Performance

Why does my page show zero theme CSS?

This is by design. If a page uses only core WordPress blocks with no Aegis custom blocks, the theme correctly loads zero additional CSS. Core block styles are provided by WordPress itself.

Will Aegis slow down my site?

No. Aegis is designed for exceptional performance. The zero-base loading strategy means the theme only adds assets that are needed. In many cases, Aegis will be faster than traditional themes that load a full CSS framework on every page.

Does Aegis work with caching plugins?

Yes. Aegis is compatible with all major caching plugins (WP Super Cache, W3 Total Cache, WP Rocket, LiteSpeed Cache, and others). No special configuration is needed.

Where do I configure performance toggles?

The theme handles zero-base asset loading — see Theme Performance. Site-wide admin toggles and Query Loop options live in Aegis Dash (Performance). Pro Query Loop extras: Query Performance.

Development

How do I set up a local development environment?

Use wp-env with Docker. Run npm run env:start to start a local WordPress instance on port 8888. See Development Setup for full instructions.

How do I build the theme assets?

Run npm run build in the theme directory for the theme’s block copies, or npm run dev for watch mode. The Aegis Dash admin app and blocks are built in Aegis Dash (wp-content/plugins/aegis-dash). See Building Assets and plugin build docs.

Can I contribute to Aegis?

Yes. Aegis is open source. See Contributing for branch strategy, PR guidelines, and coding standards.

Where do I report bugs?

Report bugs to Atmostfear Entertainment through the Aegis documentation site. Include your WordPress version, PHP version, Aegis version, steps to reproduce, and any error messages.

Accessibility

Is Aegis accessible?

Aegis ships an accessibility-ready foundation aimed at WCAG 2.2 Level AA (landmarks, skip links, focus styles, keyboard support, reduced motion). Full conformance still depends on editor content and runtime testing. See Accessibility for details.

Does Aegis support screen readers?

Yes. All templates, patterns, and custom blocks include appropriate ARIA attributes, semantic landmarks, and screen reader text where needed.

Compatibility

Does Aegis work with multisite?

Yes. Aegis is compatible with WordPress multisite installations.

Does Aegis support RTL languages?

Yes. The theme supports right-to-left (RTL) languages through WordPress built-in RTL handling and CSS logical properties.

Which browsers does Aegis support?

Aegis supports the latest two versions of Chrome, Firefox, Safari, and Edge. Internet Explorer is not supported.

Getting Support

Where to Ask

You useWhere to goWhat to expect
Free Aegis (theme, Aegis Dash, free add-ons)Community forumAsk questions, share setups, and get help from other users and the team.
Aegis Pro (license holders)Support ticketsOpen a ticket from your account. Pro tickets are answered first.

Tip

Search this documentation and the FAQ first. Most questions about setup, patterns, and dark mode are answered there.

Before You Ask

A good report gets a faster answer. Collect these details first:

Check for a Conflict First

Many problems come from another plugin. Switch off all other plugins, check whether the issue is gone, then turn them back on one at a time. See Plugin Conflicts.

Template Reference

Each template file is a thin wrapper: it loads one pattern from patterns/template/ (for example templates/single.html loads template-single). Edit the pattern file to change a template’s default layout. front-page.html is the exception: it places the header and footer parts itself and loads pages-home between them.

Hierarchy Templates

TemplateFilePatternDescription
Indexindex.htmltemplate-archiveFallback for every request. Post loop with pagination.
Front Pagefront-page.htmlpages-homeSite front page. Header and footer parts around the pages-home pattern.
Blog Homehome.htmltemplate-homePosts page set in Settings → Reading.
Pagepage.htmltemplate-pageDefault page. Also wraps bbPress forum views when the bbPress integration is on.
Singlesingle.htmltemplate-singleDefault single post with title, meta, content, and comments.
Archivearchive.htmltemplate-archiveGeneric archives for categories, tags, and custom taxonomies.
Authorauthor.htmltemplate-authorAuthor archives with bio and posts.
Datedate.htmltemplate-dateYear, month, and day archives.
Searchsearch.htmltemplate-searchSearch results.
404404.htmltemplate-404Not found page.

Page and Post Layouts

TemplateFilePost typesPatternNotes
Blankblank.htmlpage, posttemplate-blankNo header or footer. Skip link and a <main> wrapper around Post Content.
Full Widthfull-width.htmlpage, posttemplate-full-widthContent spans the wide width (1200px).
Page (No Title)page-no-title.htmlpage, posttemplate-page-no-titleOmits the title block. Useful with a custom hero.
Page: Boxedpage-boxed.htmlpage, posttemplate-page-boxed
Page: Hero Minimalpage-hero-minimal.htmlpagetemplate-page-hero-minimal
Page: Contactpage-contact.htmlpagetemplate-page-contact
Page: Landingpage-landing.htmlpagetemplate-page-landing
Page: With Sidebarpage-with-sidebar.htmlpage, posttemplate-page-with-sidebarContent with the Sidebar template part.
Single: Full Widthsingle-full-width.htmlposttemplate-single-full-width
Single: No Featured Imagesingle-no-featured-image.htmlposttemplate-single-no-featured-image
Author: Guestauthor-guest.htmlpagetemplate-author-guestGuest author archives.

Utility Templates

TemplateFilePost typesPatternNotes
Maintenancemaintenance.htmlpagetemplate-maintenanceOn-brand maintenance page. See Maintenance Mode.
Coming Sooncoming-soon.htmlpagetemplate-coming-soon
Page: Coming Soonpage-coming-soon.htmlpagetemplate-page-coming-soon

Content Archives

TemplateFilePost typesPatternNotes
Category Archivestaxonomy-category.htmlpagetemplate-taxonomy-category
Category: Bookstaxonomy-category-books.htmlpagetemplate-taxonomy-category-books
Category: Eventstaxonomy-category-events.htmlpagetemplate-taxonomy-category-events
Category: Podcaststaxonomy-category-podcasts.htmlpagetemplate-taxonomy-category-podcasts
Category: Portfoliotaxonomy-category-portfolio.htmlpagetemplate-taxonomy-category-portfolio
Category: Recipestaxonomy-category-recipes.htmlpagetemplate-taxonomy-category-recipes
Category: Videotaxonomy-category-video.htmlpagetemplate-taxonomy-category-video
Tag Archivestaxonomy-post_tag.htmlpagetemplate-taxonomy-post_tag
Tag: Featuredtaxonomy-post_tag-featured.htmlpagetemplate-taxonomy-post_tag-featured

The category and tag templates are listed in customTemplates without post types, so they are offered for pages. Assign them where you want that archive-style layout.

WooCommerce Templates

TemplateFilePost typesPatternNotes
Archive: Productarchive-product.htmlproducttemplate-archive-product
Single item: Productsingle-product.htmlproducttemplate-single-product
Single Product: Landingsingle-product-landing.htmlproducttemplate-single-product-landing
Product Search Resultsproduct-search-results.htmlproducttemplate-search-product
Search: Productsearch-product.htmlproducttemplate-search-product
Taxonomy Product Categorytaxonomy-product_cat.htmlproducttemplate-taxonomy-product_cat
Taxonomy Product Tagtaxonomy-product_tag.htmlproducttemplate-taxonomy-product_tag
Product Attributetaxonomy-product_attribute.htmlproducttemplate-taxonomy-product_attribute
Product Category: Clothingtaxonomy-product_cat-clothing.htmlproducttemplate-taxonomy-product_cat-clothing
Product Category: Digitaltaxonomy-product_cat-digital.htmlproducttemplate-taxonomy-product_cat-digital
Product Category: Outlettaxonomy-product_cat-outlet.htmlproducttemplate-taxonomy-product_cat-outlet
Page: Cartpage-cart.htmlpagetemplate-page-cart
Page: Checkoutpage-checkout.htmlpagetemplate-page-checkout
Page: Checkout Multi-Steppage-checkout-multi-step.htmlpagetemplate-page-checkout-multi-stepThree-step checkout: Shipping → Payment → Review.
Order Confirmationorder-confirmation.htmlpagetemplate-order-confirmation
Page: My Accountpage-my-account.htmlpagetemplate-page-my-account
Page: Wishlistpage-wishlist.htmlpagetemplate-page-wishlistNeeds WooCommerce, TI WooCommerce Wishlist, and Aegis Dash wishlist pattern.

Note

WooCommerce templates. Hidden from the Site Editor template picker when WooCommerce is inactive (framework Templates.php filter).

Note

Wishlist template. Requires WooCommerce, the Aegis Dash, and TI WooCommerce Wishlist. Hidden when TI Wishlist or WooCommerce is inactive. The Aegis Dash registers the template-page-wishlist pattern when dependencies are met. See WooCommerce Integration.

Template Structure

Standard Templates

Most templates follow this block structure:

Copied!
Directory tree
Template Part: Header (parts/header.html)└── Group (main wrapper) └── Content area (varies by template)Template Part: Footer (parts/footer.html)

Blank Template

The Blank template loads template-blank: the Skip to Content pattern and a <main> group with Post Content. No header or footer is included.

Template Hierarchy

WordPress selects templates in priority order. For Aegis:

Request TypeTemplate Priority
Front pagefront-page.html → page.html → index.html
Static pageCustom template → page.html → index.html
bbPress (integration on)Page block template (page / page.php hierarchy) → PHP theme-compat fallback
Single postsingle.html → index.html
Category archivecategory.html → archive.html → index.html (Aegis ships archive.html)
Author archiveauthor.html → archive.html → index.html
Date archivedate.html → archive.html → index.html
Searchsearch.html → index.html. Post type searches try search-aegis_doc.html first, for example search-product.html
404404.html → index.html
WooCommerce shoparchive-product.html → archive.html → index.html
WooCommerce productsingle-product.html → single.html → index.html

Assigning Templates to Pages

Assign a template from the page settings.

  1. Edit a page in the block editor.
  2. Open the Page tab in the right sidebar.
  3. Click the template name under Template.
  4. Select the desired template from the list.
  5. Update the page.

Editing Templates

  1. Navigate to Appearance → Editor → Templates.
  2. Select a template to edit.
  3. Modify the block structure.
  4. Save changes.

To revert a modified template to its original state:

  1. Select the template in the Site Editor.
  2. Click the Options menu (three dots).
  3. Select Clear customizations.

Pattern Reference

WooCommerce block patterns (wp:woocommerce/*) and the TI Wishlist template pattern are not theme-owned. They register from the Aegis Dash when WooCommerce (and TI Wishlist, for wishlist) are active. Modal starter patterns also live in Aegis Dash. Premium layouts live in Aegis Pro.

The theme ships 230 registered block patterns in 28 category folders. 52 of them are kept out of the inserter: the 48 template patterns, the 3 hidden patterns, and utility-patterns.

How Patterns Are Registered

The framework registers every *.php file in each folder of patterns/. The code lives in vendor/aegis/framework/src/DesignSystem/Patterns.php. Files whose names start with a dot are skipped.

Loading

Since 1.0.2 the framework reads only the file header (Pattern::register_from_file()) and registers the pattern with its filePath. WordPress runs the file only when the pattern’s content is used. Headers are cached; see Performance.

Names and Visibility

PropertyHow it is setExample
CategoryThe folder name. Labels are the folder name in title case, with cta and faq shown as CTA and FAQ.patterns/hero/ is Hero
SlugThe first category plus the file’s Slug header, joined with a hyphen.patterns/hero/split.php with Slug: split registers as hero-split
InserterHidden when the header says Inserter: false, or when the category is hidden.A template pattern

Use the slug to place a pattern in a template or page:

Copied!
HTML
<!-- wp:pattern {"slug":"hero-split"} /-->

Patterns Removed or Replaced

WhenWhat happens
WooCommerce and Aegis Dash are both activeThe plugin’s mini-cart header replaces the theme’s header-default.
The theme Related Posts block is not registeredThe four blog-related-posts-* patterns are removed. See Related Posts.

Adding Your Own Folders

Plugins can add pattern folders with the aegis_pattern_dirs filter, or change the whole list with aegis_patterns. See Hooks and Filters.

Pattern Categories

Aegis pattern categories in the block inserter.

About

Folder patterns/about/ · 3 patterns

PatternSlugFileInserter
About Founder Storyabout-founder-storyfounder-story.phpYes
About Mission Visionabout-mission-visionmission-vision.phpYes
About Values Gridabout-values-gridvalues-grid.phpYes

Author

Folder patterns/author/ · 6 patterns

PatternSlugFileInserter
Author Archive with Sidebarauthor-archive-sidebararchive-sidebar.phpYes
Author Archiveauthor-archivearchive.phpYes
Author Biography Cardauthor-biography-cardbiography-card.phpYes
Author Biography Horizontalauthor-biography-horizontalbiography-horizontal.phpYes
Author Biographyauthor-biographybiography.phpYes
List with Authorauthor-defaultdefault.phpYes

Blog

Folder patterns/blog/ · 17 patterns

PatternSlugFileInserter
Blog Feedblog-featured-blog-feedfeatured-blog-feed.phpYes
Featured Postblog-featured-postfeatured-post.phpYes
Featured Postsblog-featured-postsfeatured-posts.phpYes
Grid Boxedblog-grid-boxedgrid-boxed.phpYes
Grid Compactblog-grid-compactgrid-compact.phpYes
Grid Masonryblog-grid-masonrygrid-masonry.phpYes
Latest Postsblog-latest-postslatest-posts.phpYes
Minimalblog-minimalminimal.phpYes
Overlay Cardsblog-overlay-cardsoverlay-cards.phpYes
Related Posts: Cardsblog-related-posts-cardsrelated-posts-cards.phpYes
Related Posts: Gridblog-related-posts-gridrelated-posts-grid.phpYes
Related Posts: Listblog-related-posts-listrelated-posts-list.phpYes
Related Posts: Minimalblog-related-posts-minimalrelated-posts-minimal.phpYes
Single Blog Cardblog-single-cardsingle-card.phpYes
Single Columnblog-single-columnsingle-column.phpYes
Three Column Blogblog-three-columnthree-column.phpYes
Two Column Featuredblog-two-column-featuredtwo-column-featured.phpYes

Commerce

Folder patterns/commerce/ · 8 patterns

PatternSlugFileInserter
Money-Back Guaranteecommerce-guaranteeguarantee.phpYes
Payment Iconscommerce-payment-iconspayment-icons.phpYes
Product Comparisoncommerce-product-comparisonproduct-comparison.phpYes
Product Reviewscommerce-product-reviewsproduct-reviews.phpYes
Recently Viewed Productscommerce-recently-viewedrecently-viewed.phpYes
Shipping Informationcommerce-shipping-infoshipping-info.phpYes
Size Guidecommerce-size-guidesize-guide.phpYes
Trust Badgescommerce-trust-badgestrust-badges.phpYes

Contact

Folder patterns/contact/ · 3 patterns

Map contact layouts (aegis/form-map, aegis/form-map-overlay) live in Aegis Dash and register when the Map block is enabled.

PatternSlugFileInserter
Form Boxedcontact-form-boxedform-boxed.phpYes
Contact Iconscontact-iconsicons.phpYes
Contact Two Columncontact-two-columntwo-column.phpYes

CTA

Folder patterns/cta/ · 7 patterns

PatternSlugFileInserter
Feature Bannercta-bannerbanner.phpYes
Boxcta-boxbox.phpYes
Commerce Free Shipping CTActa-commerce-free-shippingcommerce-free-shipping.phpYes
Commerce Newsletter CTActa-commerce-newslettercommerce-newsletter.phpYes
Commerce Sale CTActa-commerce-salecommerce-sale.phpYes
Horizontalcta-horizontalhorizontal.phpYes
Newsletter CTActa-newsletternewsletter.phpYes

Event

Folder patterns/event/ · 28 patterns

PatternSlugFileInserter
Cinema Aboutevent-event-cinema-aboutcinema-about.phpYes
Cinema Cast & Crewevent-event-cinema-castcinema-cast.phpYes
Cinema CTAevent-event-cinema-ctacinema-cta.phpYes
Cinema Heroevent-event-cinema-herocinema-hero.phpYes
Conference CTAevent-event-conference-ctaconference-cta.phpYes
Conference Heroevent-event-conference-heroconference-hero.phpYes
Conference Speakersevent-event-conference-speakersconference-speakers.phpYes
Conference Tracksevent-event-conference-tracksconference-tracks.phpYes
Conference Venueevent-event-conference-venueconference-venue.phpYes
Exhibition Aboutevent-event-exhibition-aboutexhibition-about.phpYes
Exhibition Artistsevent-event-exhibition-artistsexhibition-artists.phpYes
Exhibition Galleryevent-event-exhibition-galleryexhibition-gallery.phpYes
Exhibition Heroevent-event-exhibition-heroexhibition-hero.phpYes
Exhibition Infoevent-event-exhibition-infoexhibition-info.phpYes
Exhibition Toursevent-event-exhibition-toursexhibition-tours.phpYes
Music Festival Heroevent-event-music-festival-heromusic-festival-hero.phpYes
Music Festival Infoevent-event-music-festival-infomusic-festival-info.phpYes
Music Festival Lineupevent-event-music-festival-lineupmusic-festival-lineup.phpYes
Music Festival Passesevent-event-music-festival-passesmusic-festival-passes.phpYes
Talk Heroevent-talk-herotalk-hero.phpYes
Talk Seriesevent-event-talk-seriestalk-series.phpYes
Talk Speakerevent-event-talk-speakertalk-speaker.phpYes
Talk Topicsevent-event-talk-topicstalk-topics.phpYes
Workshop CTAevent-event-workshop-ctaworkshop-cta.phpYes
Workshop Galleryevent-event-workshop-galleryworkshop-gallery.phpYes
Workshop Heroevent-workshop-heroworkshop-hero.phpYes
Workshop Instructorevent-workshop-instructorworkshop-instructor.phpYes
Workshop Scheduleevent-workshop-scheduleworkshop-schedule.phpYes

FAQ

Folder patterns/faq/ · 3 patterns

PatternSlugFileInserter
Accordion With Sidebarfaq-accordion-sidebaraccordion-sidebar.phpYes
Accordionfaq-accordionaccordion.phpYes
FAQsfaq-defaultdefault.phpYes

Folder patterns/featured/ · 5 patterns

PatternSlugFileInserter
Feature Alternatingfeatured-alternatingalternating.phpYes
Feature Grid Iconsfeatured-grid-iconsgrid-icons.phpYes
Feature Icon Boxesfeatured-icon-boxesicon-boxes.phpYes
Imagefeatured-imageimage.phpYes
Feature Images Two Columnfeatured-images-two-columnimages-two-column.phpYes

Folder patterns/footer/ · 6 patterns

PatternSlugFileInserter
Centeredfooter-centeredcentered.phpYes
Footer Defaultfooter-defaultdefault.phpYes
Minimalfooter-minimalminimal.phpYes
Store Footer Defaultfooter-store-defaultstore-default.phpYes
Store Footer Minimalfooter-store-minimalstore-minimal.phpYes
Widefooter-widewide.phpYes

Folder patterns/header/ · 6 patterns

PatternSlugFileInserter
Center Logoheader-center-logocenter-logo.phpYes
Header Center Menuheader-center-menucenter-menu.phpYes
Header Defaultheader-defaultdefault.phpYes
Menu Leftheader-menu-leftmenu-left.phpYes
Store Header Defaultheader-store-defaultstore-default.phpYes
Store Header Minimalheader-store-minimalstore-minimal.phpYes

Hero

Folder patterns/hero/ · 7 patterns

PatternSlugFileInserter
Hero Archivehero-archivearchive.phpYes
Hero Centered Darkhero-centered-darkcentered-dark.phpYes
Hero Coverhero-covercover.phpYes
Hero Image Belowhero-image-belowimage-below.phpYes
Hero Minimalhero-minimalminimal.phpYes
Hero Splithero-splitsplit.phpYes
Hero Videohero-videovideo.phpYes

Hidden

Folder patterns/hidden/ · 3 patterns

PatternSlugFileInserter
Page 404hidden-404404.phpNo
404 Illustratedhidden-illustratedillustrated.phpNo
404 Minimalhidden-minimalminimal.phpNo

Logos

Folder patterns/logos/ · 3 patterns

PatternSlugFileInserter
As Seen Inlogos-as-seen-inas-seen-in.phpYes
Logo Gridlogos-logo-gridlogo-grid.phpYes
Logo Rowlogos-logo-rowlogo-row.phpYes

Newsletter

Folder patterns/newsletter/ · 3 patterns

PatternSlugFileInserter
Newsletter Bannernewsletter-bannerbanner.phpYes
Newsletter Inlinenewsletter-inlineinline.phpYes
Newsletter Splitnewsletter-splitsplit.phpYes

Notice

Folder patterns/notice/ · 16 patterns

PatternSlugFileInserter
Affiliate Disclaimernotice-disclaimer-affiliatedisclaimer-affiliate.phpYes
Beta Disclaimernotice-disclaimer-betadisclaimer-beta.phpYes
Earnings Disclaimernotice-disclaimer-earningsdisclaimer-earnings.phpYes
Editorial Independence Disclaimernotice-disclaimer-editorialdisclaimer-editorial.phpYes
Financial Disclaimernotice-disclaimer-financialdisclaimer-financial.phpYes
Legal Disclaimernotice-disclaimer-legaldisclaimer-legal.phpYes
Medical Disclaimernotice-disclaimer-medicaldisclaimer-medical.phpYes
Sponsored Content Disclaimernotice-disclaimer-sponsoreddisclaimer-sponsored.phpYes
Testimonial Disclaimernotice-disclaimer-testimonialdisclaimer-testimonial.phpYes
Age Verification Noticenotice-notice-age-gatenotice-age-gate.phpYes
Error Noticenotice-notice-errornotice-error.phpYes
Geographic Restriction Noticenotice-notice-geo-restrictionnotice-geo-restriction.phpYes
Info Noticenotice-notice-infonotice-info.phpYes
Success Noticenotice-notice-successnotice-success.phpYes
Under Constructionnotice-notice-under-constructionnotice-under-construction.phpYes
Warning Noticenotice-notice-warningnotice-warning.phpYes

Pages

Folder patterns/pages/ · 20 patterns

PatternSlugFileInserter
About Pagepages-aboutabout.phpYes
Blog Pagepages-blogblog.phpYes
Cinema Eventpages-event-cinemacinema.phpYes
Conference Eventpages-event-conferenceconference.phpYes
Contact Pagepages-contactcontact.phpYes
Exhibition Eventpages-event-exhibitionexhibition.phpYes
Funnel Sales Pagepages-funnel-salesfunnel-sales.phpYes
Funnel Squeeze Pagepages-funnel-squeezefunnel-squeeze.phpYes
Funnel Thank You Pagepages-funnel-thank-youfunnel-thank-you.phpYes
Page Homepages-homehome.phpYes
Landing Pagepages-landinglanding.phpYes
Music Festivalpages-event-music-festivalmusic-festival.phpYes
Portfolio Pagepages-portfolioportfolio.phpYes
Product Landing Page (Dynamic)pages-product-landing-dynamicproduct-landing-dynamic.phpYes
Product Landing Page (Static)pages-product-landing-staticproduct-landing-static.phpYes
Services Pagepages-servicesservices.phpYes
Shop Full Widthpages-shop-full-widthshop-full-width.phpYes
Shop Pagepages-shopshop.phpYes
Talk & Lecture Eventpages-event-talktalk.phpYes
Workshop Eventpages-event-workshopworkshop.phpYes

Portfolio

Folder patterns/portfolio/ · 3 patterns

PatternSlugFileInserter
Portfolio Image Gallery Gridportfolio-image-gallery-gridimage-gallery-grid.phpYes
Portfolio Image Galleryportfolio-image-galleryimage-gallery.phpYes
Project Showcaseportfolio-project-showcaseproject-showcase.phpYes

Pricing

Folder patterns/pricing/ · 4 patterns

PatternSlugFileInserter
Pricing Comparison Tablepricing-comparison-tablecomparison-table.phpYes
Pricing Single Highlightpricing-single-highlightsingle-highlight.phpYes
Pricing Three Columnpricing-three-columnthree-column.phpYes
Pricing Two Columnpricing-two-columntwo-column.phpYes

Product

Folder patterns/product/ · 3 patterns

PatternSlugFileInserter
Product Category Gridproduct-category-gridcategory-grid.phpYes
Featured Product Gridproduct-featured-gridfeatured-grid.phpYes
On Sale Productsproduct-on-saleon-sale.phpYes

Folder patterns/sidebar/ · 1 pattern

PatternSlugFileInserter
Sidebar Defaultsidebar-defaultdefault.phpYes

Stats

Folder patterns/stats/ · 4 patterns

PatternSlugFileInserter
Stats Four Columnsstats-four-columnsfour-columns.phpYes
Stats Progress Barsstats-progress-barsprogress-bars.phpYes
Stats Three Columns Darkstats-three-columns-darkthree-columns-dark.phpYes
Stats Two Column Iconsstats-two-column-iconstwo-column-icons.phpYes

Team

Folder patterns/team/ · 4 patterns

PatternSlugFileInserter
Team Cards Socialteam-cards-socialcards-social.phpYes
Team Grid Simpleteam-grid-simplegrid-simple.phpYes
Team Membersteam-membersmembers.phpYes
Team Spotlightteam-spotlightspotlight.phpYes

Template

Folder patterns/template/ · 48 patterns

PatternSlugFileInserter
Template 404template-404404.phpNo
Archive Producttemplate-archive-productarchive-product.phpNo
Template Archivetemplate-archivearchive.phpNo
Author Guesttemplate-author-guestauthor-guest.phpNo
Template Authortemplate-authorauthor.phpNo
Blanktemplate-blankblank.phpNo
Coming Soontemplate-coming-sooncoming-soon.phpNo
Template Datetemplate-datedate.phpNo
Front Pagetemplate-front-pagefront-page.phpNo
Full Widthtemplate-full-widthfull-width.phpNo
Blog Hometemplate-homehome.phpNo
Maintenancetemplate-maintenancemaintenance.phpNo
Order Confirmationtemplate-order-confirmationorder-confirmation.phpNo
Page Boxedtemplate-page-boxedpage-boxed.phpNo
Page Carttemplate-page-cartpage-cart.phpNo
Page Checkout Multi-Steptemplate-page-checkout-multi-steppage-checkout-multi-step.phpNo
Page Checkouttemplate-page-checkoutpage-checkout.phpNo
Page Coming Soontemplate-page-coming-soonpage-coming-soon.phpNo
Page Contacttemplate-page-contactpage-contact.phpNo
Page Hero Minimaltemplate-page-hero-minimalpage-hero-minimal.phpNo
Page Landingtemplate-page-landingpage-landing.phpNo
Page My Accounttemplate-page-my-accountpage-my-account.phpNo
Page No Titletemplate-page-no-titlepage-no-title.phpNo
Page Wishlisttemplate-page-wishlistpage-wishlist.phpNo
Page With Sidebartemplate-page-with-sidebarpage-with-sidebar.phpNo
Template Pagetemplate-pagepage.phpNo
Search Producttemplate-search-productsearch-product.phpNo
Template Searchtemplate-searchsearch.phpNo
Single Full Widthtemplate-single-full-widthsingle-full-width.phpNo
Single No Featured Imagetemplate-single-no-featured-imagesingle-no-featured-image.phpNo
Single Product Landingtemplate-single-product-landingsingle-product-landing.phpNo
Single Producttemplate-single-productsingle-product.phpNo
Template Singletemplate-singlesingle.phpNo
Category Bookstemplate-taxonomy-category-bookstaxonomy-category-books.phpNo
Category Eventstemplate-taxonomy-category-eventstaxonomy-category-events.phpNo
Category Podcaststemplate-taxonomy-category-podcaststaxonomy-category-podcasts.phpNo
Category Portfoliotemplate-taxonomy-category-portfoliotaxonomy-category-portfolio.phpNo
Category Recipestemplate-taxonomy-category-recipestaxonomy-category-recipes.phpNo
Category Videotemplate-taxonomy-category-videotaxonomy-category-video.phpNo
Category Archivetemplate-taxonomy-categorytaxonomy-category.phpNo
Tag Featuredtemplate-taxonomy-post_tag-featuredtaxonomy-post_tag-featured.phpNo
Tag Archivetemplate-taxonomy-post_tagtaxonomy-post_tag.phpNo
Product Attributetemplate-taxonomy-product_attributetaxonomy-product_attribute.phpNo
Product Category Clothingtemplate-taxonomy-product_cat-clothingtaxonomy-product_cat-clothing.phpNo
Product Category Digitaltemplate-taxonomy-product_cat-digitaltaxonomy-product_cat-digital.phpNo
Product Category Outlettemplate-taxonomy-product_cat-outlettaxonomy-product_cat-outlet.phpNo
Taxonomy Product Categorytemplate-taxonomy-product_cattaxonomy-product_cat.phpNo
Taxonomy Product Tagtemplate-taxonomy-product_tagtaxonomy-product_tag.phpNo

Testimonial

Folder patterns/testimonial/ · 4 patterns

PatternSlugFileInserter
Testimonial Cards Gridtestimonial-cards-gridcards-grid.phpYes
Testimonial Quote Largetestimonial-quote-largequote-large.phpYes
Testimonial Singletestimonial-singlesingle.phpYes
Testimonial Three Columntestimonial-three-columnthree-column.phpYes

Timeline

Folder patterns/timeline/ · 3 patterns

PatternSlugFileInserter
Timeline Horizontaltimeline-horizontalhorizontal.phpYes
Timeline Stackedtimeline-stackedstacked.phpYes
Timeline Verticaltimeline-verticalvertical.phpYes

Utility

Folder patterns/utility/ · 6 patterns

PatternSlugFileInserter
Color Paletteutility-color-palettecolor-palette.phpYes
Utility Dark Mode Toggleutility-dark-mode-toggledark-mode-toggle.phpYes
Gradientsutility-gradientsgradients.phpYes
Patternsutility-patternspatterns.phpNo
Skip to Contentutility-skip-to-contentskip-to-content.phpYes
Utility Search Toggleutility-utility-search-toggleutility-search-toggle.phpYes

Inserting Patterns

  1. Open the block inserter (+) in the editor toolbar.
  2. Switch to the Patterns tab.
  3. Select a category from the dropdown.
  4. Click a pattern to insert it.

Patterns marked No in the Inserter column do not appear there. Templates and other patterns reference them by slug.

Style Variations Reference

Complete Variation List

#VariationFilePrimary Color FamilyCharacter
1Amberstyles/amber.jsonWarm yellow-orangeEnergetic, warm
2Amethyststyles/amethyst.jsonPurpleLuxurious, mystical
3Arcticstyles/arctic.jsonIce blueClean, cool
4Autumnstyles/autumn.jsonOrange-red-brownWarm, seasonal
5Blossomstyles/blossom.jsonSoft pinkGentle, feminine
6Canarystyles/canary.jsonBright yellowCheerful, attention-grabbing
7Charcoalstyles/charcoal.jsonDark graySerious, professional
8Copperstyles/copper.jsonWarm metallic brownIndustrial, warm
9Coralstyles/coral.jsonPink-orangeVibrant, playful
10Crimsonstyles/crimson.jsonDeep redBold, powerful
11Desertstyles/desert.jsonSandy beigeEarthy, natural
12Duskstyles/dusk.jsonPurple-blueEvening, atmospheric
13Earthstyles/earth.jsonBrownGrounded, organic
14Emeraldstyles/emerald.jsonGreenRich, prestigious
15Flamingostyles/flamingo.jsonHot pinkFun, creative
16Foreststyles/forest.jsonDeep greenNatural, serene
17Fuchsiastyles/fuchsia.jsonMagenta-pinkVivid, expressive
18Gildedstyles/gilded.jsonGoldPremium, luxurious
19Grayscalestyles/grayscale.jsonMonochromeMinimal, typographic
20Grovestyles/grove.jsonFresh greenNatural, growth
21Indigostyles/indigo.jsonDeep blue-violetDeep, trustworthy
22Ivorystyles/ivory.jsonOff-whiteElegant, clean
23Lagoonstyles/lagoon.jsonTropical blue-greenRefreshing, tropical
24Lavenderstyles/lavender.jsonSoft purpleCalming, gentle
25Limestyles/lime.jsonYellow-greenEnergetic, fresh
26Linenstyles/linen.jsonWarm neutralSoft, comfortable
27Marigoldstyles/marigold.jsonOrange-yellowBright, optimistic
28Midnightstyles/midnight.jsonDark navyDramatic, sleek
29Miststyles/mist.jsonLight graySubtle, airy
30Mossstyles/moss.jsonMuted oliveUnderstated, natural
31Neonstyles/neon.jsonElectric vividBold, modern
32Neutralstyles/neutral.jsonBalanced grayVersatile, quiet
33Obsidianstyles/obsidian.jsonPure blackDramatic, high-contrast
34Oceanstyles/ocean.jsonDeep blueProfessional, trustworthy
35Orchidstyles/orchid.jsonPurple-pinkExotic, creative
36Parchmentstyles/parchment.jsonAged creamVintage, literary
37Peachstyles/peach.jsonSoft orangeWarm, approachable
38Pewterstyles/pewter.jsonSilver-grayCool, professional
39Plumstyles/plum.jsonDark purpleRich, sophisticated
40Raspberrystyles/raspberry.jsonBerry red-pinkBold, spirited
41Rosestyles/rose.jsonClassic pinkRomantic, soft
42Rusticstyles/rustic.jsonWeathered earthAuthentic, handcrafted
43Sagestyles/sage.jsonMuted greenCalm, wise
44Sandstyles/sand.jsonWarm beigeNeutral, coastal
45Sapphirestyles/sapphire.jsonBrilliant bluePremium, deep
46Sepiastyles/sepia.jsonWarm brownVintage, nostalgic
47Skystyles/sky.jsonLight blueOpen, friendly
48Slatestyles/slate.jsonCool blue-grayProfessional, modern
49Steelstyles/steel.jsonIndustrial grayStrong, utilitarian
50Stonestyles/stone.jsonWarm graySolid, dependable
51Sunflowerstyles/sunflower.jsonBright yellowHappy, vibrant
52Tangerinestyles/tangerine.jsonVibrant orangeEnergetic, warm
53Teastyles/tea.jsonMuted greenRefined, peaceful
54Tealstyles/teal.jsonBlue-greenBalanced, modern
55Terracottastyles/terracotta.jsonClay red-brownWarm, artisanal
56Vintagestyles/vintage.jsonMuted mixedRetro, eclectic
57Violetstyles/violet.jsonClassic purpleCreative, regal
58Walnutstyles/walnut.jsonRich brownWarm, refined
59Winestyles/wine.jsonDeep burgundyElegant, mature
60Zincstyles/zinc.jsonCool gray (dark background)Dark, neutral

Variation Categories by Mood

Warm Variations

Amber, Autumn, Copper, Coral, Crimson, Desert, Earth, Flamingo, Gilded, Linen, Marigold, Peach, Raspberry, Rose, Rustic, Sand, Sepia, Sunflower, Tangerine, Terracotta, Walnut, Wine.

Cool Variations

Arctic, Indigo, Lagoon, Midnight, Ocean, Pewter, Sapphire, Sky, Slate, Steel, Teal.

Neutral Variations

Charcoal, Grayscale, Ivory, Mist, Neutral, Obsidian, Parchment, Stone, Zinc.

Nature Variations

Blossom, Emerald, Forest, Grove, Lavender, Lime, Moss, Sage, Tea.

Vibrant Variations

Canary, Fuchsia, Neon, Orchid, Plum, Violet.

Dark Variations (Dark Default Background)

Midnight, Obsidian, Zinc. They set styles.color.background to primary-950. Charcoal and Dusk keep the default white background.

The default style is the theme’s theme.json (title Light), not a file in styles/.

Applying a Variation

Apply a variation from Browse styles.

  1. Open the Site Editor (Appearance → Editor).
  2. Click the Styles icon (half-filled circle).
  3. Click Browse styles.
  4. Select a variation from the grid.
  5. Click Save to apply.

How Variations Affect Design Tokens

Each variation may modify the following. No variation changes fonts, spacing, or layout.

Token CategoryExample Changes
Primary colorsDifferent hue for the primary palette (all 60)
Neutral and status colorsShifted neutral and status shades (all 60)
BackgroundPage background (Midnight, Obsidian, Zinc)
Text colorsBody, heading, and link colors (Flamingo, Midnight, Obsidian, Zinc)
Accent colorsButton colors (Flamingo, Midnight, Obsidian, Zinc)

Creating Custom Variations

Developers can add custom style variations:

  1. Create a JSON file in the styles/ directory.
  2. Follow the theme.json schema for settings and styles overrides.
  3. Include a title property for the display name.
  4. The variation appears automatically in the style browser.

Example structure:

Copied!
JSON
{ "$schema": "https://schemas.wp.org/trunk/theme.json", "version": 3, "title": "My Custom Variation", "settings": { "color": { "palette": [] } }, "styles": { "color": { "background": "#ffffff", "text": "#1a1a1a" } }}

CSS Variables Reference

Color Variables

Primary

Copied!
CSS
--wp--preset--color--primary-25--wp--preset--color--primary-50--wp--preset--color--primary-100--wp--preset--color--primary-200--wp--preset--color--primary-300--wp--preset--color--primary-400--wp--preset--color--primary-500--wp--preset--color--primary-600--wp--preset--color--primary-700--wp--preset--color--primary-800--wp--preset--color--primary-900--wp--preset--color--primary-950

Neutral

Copied!
CSS
--wp--preset--color--neutral-0--wp--preset--color--neutral-50--wp--preset--color--neutral-100--wp--preset--color--neutral-200--wp--preset--color--neutral-300--wp--preset--color--neutral-400--wp--preset--color--neutral-500--wp--preset--color--neutral-600--wp--preset--color--neutral-700--wp--preset--color--neutral-800--wp--preset--color--neutral-900--wp--preset--color--neutral-950

Info (Blue)

Copied!
CSS
--wp--preset--color--info-100--wp--preset--color--info-500--wp--preset--color--info-600

Success (Green)

Copied!
CSS
--wp--preset--color--success-100--wp--preset--color--success-500--wp--preset--color--success-600

Warning (Orange)

Copied!
CSS
--wp--preset--color--warning-100--wp--preset--color--warning-500--wp--preset--color--warning-600

Error (Red)

Copied!
CSS
--wp--preset--color--error-100--wp--preset--color--error-500--wp--preset--color--error-600

Utility Colors

Copied!
CSS
--wp--preset--color--transparent--wp--preset--color--current--wp--preset--color--inherit--wp--preset--color--shadow

There is no secondary-*, tertiary-*, or quaternary-* palette. Semantic Success / Info / Warning / Error each ship only 100, 500, and 600. Default buttons use primary-900 / primary-800. The block style is-style-secondary is a button variation name, not a color family.

Font Family Variables

Copied!
CSS
--wp--preset--font-family--lexend--wp--preset--font-family--lexend-deca--wp--preset--font-family--jetbrains

Font Size Variables

Copied!
CSS
--wp--preset--font-size--96 /* 56px–96px */--wp--preset--font-size--88 /* 52px–88px */--wp--preset--font-size--80 /* 48px–80px */--wp--preset--font-size--72 /* 44px–72px */--wp--preset--font-size--64 /* 40px–64px */--wp--preset--font-size--60 /* 38px–60px */--wp--preset--font-size--56 /* 37px–56px */--wp--preset--font-size--52 /* 36px–52px */--wp--preset--font-size--48 /* 34px–48px */--wp--preset--font-size--44 /* 32px–44px */--wp--preset--font-size--42 /* 31px–42px */--wp--preset--font-size--40 /* 30px–40px */--wp--preset--font-size--36 /* 28px–36px */--wp--preset--font-size--32 /* 28px–32px */--wp--preset--font-size--28 /* 24px–28px */--wp--preset--font-size--24 /* 22px–24px */--wp--preset--font-size--22 /* 20px–22px */--wp--preset--font-size--20 /* 19px–20px */--wp--preset--font-size--18 /* 17px–18px */--wp--preset--font-size--16 /* 15px–16px */--wp--preset--font-size--15 /* 14px–15px */--wp--preset--font-size--14 /* 13px–14px */--wp--preset--font-size--13 /* 12px–13px */--wp--preset--font-size--12 /* 11px–12px */--wp--preset--font-size--11 /* 10px–11px */--wp--preset--font-size--10 /* 9px–10px */--wp--preset--font-size--8 /* 7px–8px */--wp--preset--font-size--inherit /* inherit */

Each size is a clamp() from the mobile minimum to the named maximum. inherit takes the parent’s size.

Spacing Variables

Copied!
CSS
--wp--preset--spacing--xxxs /* 4px */--wp--preset--spacing--xxs /* 8px */--wp--preset--spacing--2-xs /* 12px */--wp--preset--spacing--xs /* 16px */--wp--preset--spacing--sm /* 20px–24px */--wp--preset--spacing--md /* 24px–32px */--wp--preset--spacing--ml /* 24px–40px */--wp--preset--spacing--lg /* 24px–48px */--wp--preset--spacing--xl /* 40px–64px */--wp--preset--spacing--xll /* 48px–80px */--wp--preset--spacing--xxl /* 56px–96px */

There are no 2xl, 3xl, or 4xl spacing slugs. The 2xs slug becomes 2-xs in the variable name.

Shadow Variables

Copied!
CSS
--wp--preset--shadow--none--wp--preset--shadow--xxs--wp--preset--shadow--xs--wp--preset--shadow--sm--wp--preset--shadow--md--wp--preset--shadow--lg--wp--preset--shadow--xl--wp--preset--shadow--xxl

Every preset is built from var(--wp--custom--box-shadow--color). See Shadows for the values.

Gradient Variables

Copied!
CSS
--wp--preset--gradient--primary-700-500--wp--preset--gradient--primary-500-300--wp--preset--gradient--primary-transparent--wp--preset--gradient--primary-foreground--wp--preset--gradient--body-heading--wp--preset--gradient--surface-border--wp--preset--gradient--background-transparent--wp--preset--gradient--transparent-background--wp--preset--gradient--fade-left--wp--preset--gradient--fade-right--wp--preset--gradient--checkerboard--wp--preset--gradient--grid--wp--preset--gradient--diagonal-cut-dark-left--wp--preset--gradient--diagonal-cut-dark-right--wp--preset--gradient--diagonal-cut-light-left--wp--preset--gradient--diagonal-cut-light-right--wp--preset--gradient--fade-dark-top--wp--preset--gradient--fade-dark-bottom--wp--preset--gradient--long-top-short-bottom--wp--preset--gradient--short-top-long-bottom--wp--preset--gradient--vignette-vertical--wp--preset--gradient--vignette-radial--wp--preset--gradient--diagonal-vignette--wp--preset--gradient--scrim-bottom--wp--preset--gradient--scrim-top--wp--preset--gradient--diagonal-triple--wp--preset--gradient--layered-bands--wp--preset--gradient--spotlight-bottom-left--wp--preset--gradient--spotlight-top-right--wp--preset--gradient--cinematic-bars--wp--preset--gradient--diagonal-stripes

Layout Variables

Copied!
CSS
--wp--style--global--content-size /* min(calc(100% - lg * 2), 720px) */--wp--style--global--wide-size /* min(calc(100% - lg * 2), 1200px) */--wp--style--root--padding-left /* var(--wp--preset--spacing--lg) */--wp--style--root--padding-right /* var(--wp--preset--spacing--lg) */--wp--style--block-gap /* var(--wp--preset--spacing--sm) */

Custom Variables

These are custom properties defined in the custom section of theme.json:

Border

Copied!
CSS
--wp--custom--border--width /* 1px */--wp--custom--border--style /* solid */--wp--custom--border--color /* var(--wp--preset--color--neutral-200) */--wp--custom--border--radius /* 6px */

Box Shadow

Copied!
CSS
--wp--custom--box-shadow--x /* 0 */--wp--custom--box-shadow--y /* 4px */--wp--custom--box-shadow--blur /* 16px */--wp--custom--box-shadow--spread /* 0 */--wp--custom--box-shadow--color /* var(--wp--preset--color--shadow) */--wp--custom--box-shadow--hover--y /* 8px */

--wp--custom--box-shadow--color is the color every shadow preset uses.

Font Weight

Copied!
CSS
--wp--custom--font-weight--black /* 900 */--wp--custom--font-weight--extrabold /* 800 */--wp--custom--font-weight--bold /* 700 */--wp--custom--font-weight--semibold /* 600 */--wp--custom--font-weight--medium /* 500 */--wp--custom--font-weight--normal /* 400 */--wp--custom--font-weight--light /* 300 */--wp--custom--font-weight--extralight /* 200 */--wp--custom--font-weight--thin /* 100 */

Transition

Copied!
CSS
--wp--custom--transition--property /* all */--wp--custom--transition--duration /* 0.1s */--wp--custom--transition--timing-function /* ease-in */

Spacing

Copied!
CSS
---wp--custom--spacing--gap /* var(--wp--style--block-gap) */

Other settings.custom groups (surface, card, button, input, notice, callout, accordion, submenu, header, icon, and more) style framework components. Their full names follow the same pattern; see theme.json.

There is no --wp--custom--typography--* group. Heading and body line heights are set directly in styles (body 1.6, headings 1.4, with per-level line heights from the size scale). See Typography.

Using Variables in Custom CSS

In the Site Editor

Use Aegis CSS variables in Additional CSS.

  1. Navigate to Appearance → Editor → Styles.
  2. Click the Options menu (three dots).
  3. Select Additional CSS.
  4. Use CSS custom properties in your rules:
Copied!
CSS
.my-class { color: var(--wp--preset--color--primary-700); font-family: var(--wp--preset--font-family--lexend); font-size: var(--wp--preset--font-size--18); padding: var(--wp--preset--spacing--md); box-shadow: var(--wp--preset--shadow--sm); border-radius: var(--wp--custom--border--radius);}

In Theme Stylesheets

Block and component stylesheets should always reference design tokens:

Copied!
CSS
/* Good — uses design tokens */.wp-block-aegis-countdown { background: var(--wp--preset--color--neutral-50); border: 1px solid var(--wp--preset--color--neutral-200); border-radius: var(--wp--custom--border--radius); padding: var(--wp--preset--spacing--lg);}/* Avoid — hardcoded values */.wp-block-aegis-countdown { background: #fafafa; border: 1px solid #e5e5e5; border-radius: 6px; padding: 32px;}

Using tokens ensures components automatically adapt to style variations and dark mode.

Variable Naming Convention

WordPress generates CSS custom property names from theme.json using this pattern:

Copied!
CSS
--wp--preset--{category}--{slug}--wp--custom--{path}--{property}--wp--style--{scope}--{property}
PrefixSource
--wp--preset--color--settings.color.palette
--wp--preset--font-size--settings.typography.fontSizes
--wp--preset--font-family--settings.typography.fontFamilies
--wp--preset--spacing--settings.spacing.spacingSizes
--wp--preset--shadow--settings.shadow.presets
--wp--preset--gradient--settings.color.gradients
--wp--custom--settings.custom

Hooks and Filters

Framework Injection Actions

Fired by vendor/aegis/framework CoreBlocks:

HookLocation
aegis_before_{slug}Before template part {slug} (e.g. aegis_before_header)
aegis_after_{slug}After template part {slug}
aegis_before_contentBefore main post content block
aegis_after_contentAfter main post content block

See Hook Patterns (Theme Injection Hooks) for usage examples.

Plugin Integration Actions

Fired when integrations are enabled (Aegis Dash IntegrationInjector):

HookContext
aegis_before_woocommerce_checkout / aegis_after_woocommerce_checkoutWooCommerce checkout
aegis_before_woocommerce_cart / aegis_after_woocommerce_cartWooCommerce cart
aegis_before_edd_download / aegis_after_edd_downloadEDD
aegis_before_affwp_dashboard / aegis_after_affwp_dashboardAffiliateWP
aegis_before_llms_course / aegis_after_llms_courseLifterLMS course
aegis_before_llms_lesson / aegis_after_llms_lessonLifterLMS lesson
aegis_before_sensei_course / aegis_after_sensei_courseSensei course
aegis_before_sensei_lesson / aegis_after_sensei_lessonSensei lesson
aegis_before_sensei_quiz / aegis_after_sensei_quizSensei quiz
aegis_before_fluentform / aegis_after_fluentformFluent Forms
aegis_before_gform / aegis_after_gformGravity Forms
aegis_before_nf_form / aegis_after_nf_formNinja Forms
aegis_before_learndash_course / aegis_after_learndash_courseLearnDash course
aegis_before_learndash_lesson / aegis_after_learndash_lessonLearnDash lesson
aegis_before_learndash_topic / aegis_after_learndash_topicLearnDash topic
aegis_before_learndash_quiz / aegis_after_learndash_quizLearnDash quiz
aegis_before_bbpress_forum / aegis_after_bbpress_forumbbPress forums loop
aegis_before_bbpress_topic / aegis_after_bbpress_topicbbPress single topic
aegis_before_post_author / aegis_after_post_authorcore/post-author and co-authors/block
aegis_before_map_block / aegis_after_map_blockMap block
aegis_before_video_block / aegis_after_video_blockcore/video when Connectors → BunnyCDN is on

Theme Integration Actions

Fired by the theme framework itself (vendor/aegis/framework/src/Integrations/LearnDash.php), not by Aegis Dash. Each fires once per request.

HookArgumentsContext
aegis_learndash_focus_headerint $course_idTop of the LearnDash Focus Mode layout
aegis_learndash_focus_footerint $course_idBottom of the LearnDash Focus Mode layout

Full catalog: Aegis Dash Hook Patterns.

Admin Actions (Plugin)

HookTiming
aegis_admin_before_blocks_pageBefore Blocks admin render
aegis_admin_before_modals_pageBefore Modals admin render
aegis_admin_before_hooks_pageBefore Hooks admin render
aegis_admin_before_visibility_presets_pageBefore Visibility Presets admin render
aegis_admin_before_snippets_pageBefore Snippets admin render
aegis_admin_before_integrations_pageBefore Integrations admin render
aegis_admin_before_connectors_pageBefore Connectors admin render
aegis_admin_before_conditionals_pageBefore Conditionals admin render
aegis_admin_before_general_settings_pageBefore Settings admin render
aegis_admin_before_license_pageBefore License admin render (Pro)
aegis_admin_conditionals_sectionsExtra Conditionals admin sections
aegis_connectors_nav_itemsConnectors sidebar nav
aegis_connectors_maps_sectionGoogle Maps settings section
aegis_connectors_analytics_sectionAnalytics settings section

Admin Filters (Plugin / Pro)

FilterDescription
aegis_admin_tabsRegister admin menu tabs
aegis_admin_tab_prioritiesTab sort order
aegis_injection_locationsInjection location catalog

Pro Hook Pattern Filters

FilterDescription
aegis_available_hook_patternsCustom hook pattern options
aegis_hook_patterns_limitMax patterns loaded (default 100)
aegis_hook_pattern_contentFilter rendered hook pattern content

Framework Filters

FilterDescription
aegis_load_all_scriptsForce-load all framework scripts
aegis_load_all_stylesForce-load all framework styles
aegis_system_fontsSystem font definitions
aegis_dark_modeEnable or disable dark mode (default true). Returning false also removes the editor light/dark preview toggle
aegis_dynamic_custom_propertiesDynamic CSS custom properties
aegis_patternsPattern categories
aegis_pattern_dirsPattern scan directories
aegis_template_tagsTemplate tag output
aegis_template_tag_post_fieldsPost fields that {field} template tags can print. Argument: string[] $fields. Defaults to public fields only: title, excerpt, dates, author, status, slug, parent, post type, and comment count (TemplateTags.php)
aegis_query_protected_meta_keys_-prefixed meta keys that Query Loop meta filters and meta sorting accept. Argument: string[] $keys. Default: WooCommerce product keys (_price, _regular_price, _sale_price, _stock, _wc_average_rating, _wc_review_count) (QueryEnhancements.php)
aegis_words_per_minuteReading time calculation (default 200)
aegis_comments_form_title_tagComments form heading tag
aegis_placeholder_svgPlaceholder SVG markup
aegis_format_inline_jsInline JS formatting
aegis_default_modeDefault color mode, 'light' or 'dark'. Arguments: string $mode, array $global_settings. The default is 'dark' when global settings define custom.lightMode, otherwise 'light'. Also sets the starting mode of the editor preview toggle (DarkMode.php)
aegis_inline_css / aegis_inline_jsFinal inline CSS or JS string. Arguments: string $string, string $template_html, bool $load_all, object $instance. The prefix is the asset handle, which is the theme folder name (AssetsTrait.php)
aegis_template_htmlCollected front-end template, template part, and post markup that decides which conditional assets load. Argument: string $markup (FrontendContentContext.php)
aegis_editor_dataData passed to the framework editor script as window.aegis. Argument: array $data (EditorAssets.php)
aegis_query_enhancements_dataPost types, taxonomies, meta operators, meta types, and order-by options for the Query enhancements panel. Argument: array $data (QueryEnhancements.php)
aegis_icon_setsRegistered icon sets. Argument: array $icon_sets (set name ⇒ folder path) (vendor/aegis/icons/src/Icon.php)

Theme Filters

FilterDescription
aegis_dynamic_template_part_slugSwap a core/template-part slug at render time when an alternate parts/{slug}.html exists. See Dynamic Template Parts.
aegis_theme_update_repositoryGitHub repository (owner/name) the theme checks for updates. Default aegiswp/aegis. Argument: string $repository (src/Admin/GitHubUpdater.php). See Updating.
aegis_companion_package_urlZip URL Aegis Dash notice installs from. Default: the aegis-dash.zip package of the latest Aegis Dash release. Argument: string $package (src/Admin/CompanionNotice.php). Use it to pin a release or a mirror.

Pro Filters

FilterDescription
aegis_font_familiesFont families for theme.json
aegis_pro_analytics_retention_daysVideo analytics retention
aegis_pro_computed_valueBlock Bindings computed values
aegis_tabs_tab_visibilityTab block visibility

Block Filters (Examples)

FilterDescription
aegis_related_posts_queryRelated Posts WP_Query args. Arguments: array $query_args, int $post_id, string $context (the context gets a -fallback suffix for the fallback query, and is block-preview in the editor)

Usage Example

Copied!
PHP
add_action( 'aegis_after_content', function () { if ( is_single() ) { echo do_blocks( '<!-- wp:pattern {"slug":"cta-newsletter"} /-->' ); }} );

Next Steps

Code Snippets

For the hooks themselves (file, arguments, and when they run), see Hooks and Filters.

Where to Put Snippets

Add snippets through a plugin, not a theme’s functions.php. Code in a plugin survives theme updates and keeps working if you switch themes.

Aegis Dash has a built-in Code Snippets screen:

  1. Go to Aegis → Code Snippets → Settings and turn on PHP Enabled.
  2. Add a snippet and choose the Functions (PHP) type.
  3. Paste the code, leave Where to run on Everywhere (or pick Frontend only or Admin only), turn the snippet on, and save.

Functions snippets run early on init. A snippet that hooks something WordPress or the theme runs before init (for example after_setup_theme) belongs in a site-specific plugin instead. If a snippet causes a fatal error, Safe Mode pauses snippets so you can fix it.

A Site-Specific Plugin

Create wp-content/plugins/my-site-snippets/my-site-snippets.php:

Copied!
PHP
<?php/** * Plugin Name: My Site Snippets * Description: Custom code for this site. */defined( 'ABSPATH' ) || exit;// Paste snippets below.

Activate My Site Snippets under Plugins, then paste each snippet at the end of the file. Any other code snippets plugin works too.

Snippets that call add_filter() must return a value. Test on a staging site first.


Updates

Update From a Fork or Mirror

aegis_theme_update_repository — the GitHub repository (owner/name) checked for theme updates. Default: aegiswp/aegis.

Copied!
PHP
add_filter( 'aegis_theme_update_repository', function ( string $repository ): string { return 'my-agency/aegis-theme';} );

The repository’s latest release must include an aegis.zip asset with an aegis/ folder inside.

Install Aegis Dash From a Pinned Release

aegis_companion_package_url — the zip Aegis Dash notice installs. Default: the aegis-dash.zip package of the latest Aegis Dash release.

Copied!
PHP
add_filter( 'aegis_companion_package_url', function ( string $package ): string { return 'https://example.com/downloads/aegis-1.0.0.zip'; // Your own copy of the release zip.} );

Dark Mode

These snippets control which color mode the site loads in and whether visitors can switch. Paste them into Aegis → Code Snippets (Functions (PHP)) or a site-specific plugin. For how dark mode works for visitors, see Dark Mode.

I want to…Use
Remove dark mode completelyaegis_dark_mode
Always start in light modeaegis_default_mode returning light
Always start in dark modeaegis_default_mode returning dark
Start in a different mode on some pagesaegis_default_mode with a conditional tag
Test a mode without changing anythingThe ?dark_mode=true or ?dark_mode=false URL parameter

Note

aegis_default_mode only sets the starting mode. A visitor who picked a mode with the toggle keeps their choice (it is stored in the aegisDarkMode cookie).

Turn Off Dark Mode

aegis_dark_mode: return false to remove dark mode from the front end and hide the editor’s light/dark preview toggle. The site then uses only the light palette.

Copied!
PHP
add_filter( 'aegis_dark_mode', '__return_false' );

Always Start in Light Mode

aegis_default_mode: the starting color mode, light or dark.

Copied!
PHP
add_filter( 'aegis_default_mode', function ( string $mode, array $global_settings ): string { return 'light';}, 10, 2 );

Always Start in Dark Mode

Copied!
PHP
add_filter( 'aegis_default_mode', function ( string $mode, array $global_settings ): string { return 'dark';}, 10, 2 );

Start in Dark Mode Only on Some Pages

Use a WordPress conditional tag inside the filter. This example starts the front page and the page with the slug pricing in dark mode and everything else in light mode.

Copied!
PHP
add_filter( 'aegis_default_mode', function ( string $mode, array $global_settings ): string { if ( is_front_page() || is_page( 'pricing' ) ) { return 'dark'; } return 'light';}, 10, 2 );

Preview Either Mode With a URL

Add ?dark_mode=true or ?dark_mode=false to any front-end URL to show that mode for the request, for example https://example.com/?dark_mode=true. No code is needed.


Patterns

Hide a Theme Pattern

aegis_patterns — the pattern list before registration, as category => [ slug => file ].

Copied!
PHP
add_filter( 'aegis_patterns', function ( array $categories ): array { unset( $categories['hero']['video'] ); // patterns/hero/video.php unset( $categories['event'] ); // the whole Event category return $categories;} );

Add Your Own Pattern Folder

aegis_pattern_dirs — folders scanned for patterns. Each subfolder becomes a category, and each .php file a pattern.

Copied!
PHP
add_filter( 'aegis_pattern_dirs', function ( array $dirs ): array { $dirs[] = get_stylesheet_directory() . '/patterns'; return $dirs;} );

Template Parts and Layout Hooks

Swap a Template Part on Some Pages

aegis_dynamic_template_part_slug — change which template part renders. Receives the slug and the parsed block.

Copied!
PHP
add_filter( 'aegis_dynamic_template_part_slug', function ( string $slug, array $parsed_block ): string { if ( 'header' === $slug && is_page( 'landing' ) ) { return 'header-minimal'; // parts/header-minimal.html must exist in the theme. } return $slug;}, 10, 2 );

Add Content Before or After a Template Part

aegis_before_{slug} and aegis_after_{slug} run around every template part, for example aegis_before_header and aegis_after_footer.

Copied!
PHP
add_action( 'aegis_before_header', function (): void { echo '<div class="site-announcement">Free shipping on orders over $50.</div>';} );

Add Content Before or After Post Content

aegis_before_content and aegis_after_content run around the Post Content block.

Copied!
PHP
add_action( 'aegis_after_content', function (): void { if ( is_singular( 'post' ) ) { echo do_blocks( '<!-- wp:pattern {"slug":"cta-newsletter"} /-->' ); }} );

Add a LearnDash Focus Mode Header

aegis_learndash_focus_header and aegis_learndash_focus_footer run in LearnDash Focus Mode. They receive the course ID.

Copied!
PHP
add_action( 'aegis_learndash_focus_header', function ( int $course_id ): void { printf( '<p class="course-banner">%s</p>', esc_html( get_the_title( $course_id ) ) );} );

Template Tags and Reading Time

Add a Template Tag

aegis_template_tags — values for {tag} placeholders in text blocks, for example 2026 or Atmostfear Entertainment. Receives the tags and the current post ID.

Copied!
PHP
add_filter( 'aegis_template_tags', function ( array $tags, $post_id ): array { $tags['support_email'] = 'help@example.com'; // Use {support_email} in any paragraph. return $tags;}, 10, 2 );

Let Template Tags Print Another Post Field

aegis_template_tag_post_fields — the post fields that {field} tags can print, for example Code Snippets. The default list is post_author, post_date, post_date_gmt, post_title, post_excerpt, post_status, post_name, post_modified, post_modified_gmt, post_parent, post_type, and comment_count.

Copied!
PHP
add_filter( 'aegis_template_tag_post_fields', function ( array $fields ): array { $fields[] = 'menu_order'; // Use {menu_order} in any paragraph. return $fields;} );

Custom fields work as tags too, except names that start with _. Tags print nothing for password-protected posts or posts the visitor cannot read. Do not add post_password or post_content.

Change Reading Speed

aegis_words_per_minute — words per minute used for reading time. Default: 200.

Copied!
PHP
add_filter( 'aegis_words_per_minute', function (): int { return 250;} );

Use an H3 for the Comment Form Title

aegis_comments_form_title_tag — the “Leave a Reply” heading tag. Default: h4.

Copied!
PHP
add_filter( 'aegis_comments_form_title_tag', function (): string { return 'h3';} );

aegis_related_posts_query — WP_Query arguments for the Related Posts block. The context is block, block-fallback (second query when too few results), or block-preview (editor).

Copied!
PHP
add_filter( 'aegis_related_posts_query', function ( array $args, int $post_id, string $context ): array { $args['date_query'] = array( array( 'after' => '1 year ago' ) ); // Only recent posts. return $args;}, 10, 3 );

Assets and Styles

Add Inline CSS

aegis_inline_css — the theme’s inline CSS, printed once per page. Arguments: CSS, template HTML, whether all assets load, and the asset class.

Copied!
PHP
add_filter( 'aegis_inline_css', function ( string $css ): string { return $css . '.site-announcement{padding:.5rem;text-align:center;background:var(--wp--preset--color--primary-500);color:#fff}';} );

Add Inline JavaScript

aegis_inline_js — same as above, for the theme’s inline script.

Copied!
PHP
add_filter( 'aegis_inline_js', function ( string $js ): string { return $js . 'document.documentElement.classList.add("js-ready");';} );

Load Every Script or Style on Every Page

aegis_load_all_scripts and aegis_load_all_styles — Aegis normally loads only the CSS and JS a page needs. Return true to load everything (useful when content is added by JavaScript after the page loads).

Copied!
PHP
add_filter( 'aegis_load_all_styles', '__return_true' );add_filter( 'aegis_load_all_scripts', '__return_true' );

Tell Aegis About Extra Markup

aegis_template_html — the page HTML Aegis scans to decide which assets to load. Add markup that is printed outside the blocks so its CSS loads.

Copied!
PHP
add_filter( 'aegis_template_html', function ( string $html ): string { return $html . '<div class="is-style-surface"></div>';} );

Change Inline JavaScript Formatting

aegis_format_inline_js — runs on inline JavaScript before output (Aegis Pro uses it to minify).

Copied!
PHP
add_filter( 'aegis_format_inline_js', function ( string $js ): string { return trim( $js );} );

Add or Change CSS Custom Properties

aegis_dynamic_custom_properties — the --wp--… custom properties Aegis generates from global styles. Receives the properties and the global styles.

Copied!
PHP
add_filter( 'aegis_dynamic_custom_properties', function ( array $styles, array $global_styles ): array { $styles['--wp--custom--header--height'] = '72px'; return $styles;}, 10, 2 );

Change the System Font Stacks

aegis_system_fonts — the Sans Serif, Serif, and Monospace system stacks offered in typography settings.

Copied!
PHP
add_filter( 'aegis_system_fonts', function ( array $fonts ): array { $fonts[] = array( 'name' => 'Rounded', 'slug' => 'rounded', 'fontFamily' => 'ui-rounded, "SF Pro Rounded", system-ui, sans-serif', ); return $fonts;} );

Editor

Pass Data to Editor Scripts

aegis_editor_data — data available to editor scripts. Includes siteUrl and adminUrl.

Copied!
PHP
add_filter( 'aegis_editor_data', function ( array $data ): array { $data['brandName'] = get_bloginfo( 'name' ); return $data;} );

Filter or Sort Query Loops by a Protected Meta Key

aegis_query_protected_meta_keys — the _-prefixed meta keys that Query Loop meta filters and meta sorting accept. Other _ keys are ignored. Default: WooCommerce’s _price, _regular_price, _sale_price, _stock, _wc_average_rating, and _wc_review_count.

Copied!
PHP
add_filter( 'aegis_query_protected_meta_keys', function ( array $keys ): array { $keys[] = '_event_start_date'; return $keys;} );

Only add keys whose values are safe for anyone who can edit posts to see.

Change Query Loop Editor Options

aegis_query_enhancements_data — options in the theme’s Query Loop controls: postTypes, taxonomies, metaCompareOperators, metaTypes, orderByOptions.

Copied!
PHP
add_filter( 'aegis_query_enhancements_data', function ( array $data ): array { $data['orderByOptions'][] = array( 'value' => 'menu_order', 'label' => 'Menu Order' ); return $data;} );

SVG and Icons

Add an Icon Set

aegis_icon_sets — icon sets as name => folder path. Every .svg file in the folder becomes an icon in the icon pickers.

Copied!
PHP
add_filter( 'aegis_icon_sets', function ( array $icon_sets ): array { $icon_sets['brand-icons'] = get_stylesheet_directory() . '/assets/icons'; return $icon_sets;} );

Change the Image Placeholder

aegis_placeholder_svg — the SVG shown where an image is missing. Receives the SVG markup and its title.

Copied!
PHP
add_filter( 'aegis_placeholder_svg', function ( string $svg, string $title ): string { return '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" role="img" aria-label="' . esc_attr( $title ) . '"><rect width="24" height="24" fill="currentColor" opacity=".1"/></svg>';}, 10, 2 );

File Structure

Top-Level Structure

Copied!
Directory tree
aegis/├── assets/ # Fonts and static assets├── docs/ # Theme documentation (primary docs hub)├── languages/ # aegis.pot (theme text domain; plugin has its own catalog)├── parts/ # Template parts (.html)├── patterns/ # Block patterns (.php)├── src/ # Theme glue + block sources (PSR-4)├── styles/ # Style variation JSON files├── templates/ # Page templates (.html)├── tools/ # Dev utilities (tracked in Git; excluded from release zip)│ ├── scratch/ # Local-only probes (gitignored)│ └── wpaudit/ # WPAudit PHPUnit suite (source tracked; vendor/ is not)├── vendor/ # Composer dependencies (framework, utilities)├── functions.php # Theme bootstrap├── theme.json # Design tokens├── style.css # Theme header├── composer.json├── package.json└── webpack.config.js

Key Directories

src/

PHP services and block source files:

Copied!
Directory tree
src/├── bootstrap.php # Starts theme services (see below)├── helpers.php├── NavigationFallback.php # Short sample menu for empty Navigation blocks (1.0.1)├── PatternDependencies.php # Hides patterns whose blocks need an inactive plugin (1.0.1)├── Admin/│ ├── CompanionNotice.php # Aegis Dash install notice (installs the latest release)│ └── GitHubUpdater.php # Theme updates from GitHub releases (1.0.1)└── Blocks/ # block.json + TSX sources (compiled in place) ├── BlockRegistrar.php ├── RelatedPostsQuery.php ├── ToggleId.php # Stable data-toggle-id for Toggle switchers ├── blocks-manifest.php # Generated block metadata collection (npm run build) ├── countdown/ ├── slider/ ├── slide/ ├── toggle/ ├── toggle-content/ └── related-posts/

src/bootstrap.php starts CompanionNotice, GitHubUpdater, BlockRegistrar, and NavigationFallback. Icon collections under vendor/aegis/icons/public/icons/ (including payment) are discovered automatically. blocks-manifest.php is written by tools/generate-blocks-manifest.php at the end of npm run build; BlockRegistrar passes it to wp_register_block_metadata_collection(). Do not edit it by hand.

Engine PHP (patterns REST, template expander, dynamic parts, navigation overlay, editor overlay fix, Woo breadcrumbs including Store Breadcrumb delimiter wrap) lives in vendor/aegis/framework. Admin dashboard, conditionals, and multi-step checkout live in Aegis Dash.

vendor/aegis/

Composer packages:

PackageRole
framework/Design system engine, core block enhancements, patterns
utilities/Pattern helper, shared utilities
container/, dom/, hooks/Supporting libraries
icons/SVG files and Aegis\Icons\Icon utility (library registration lives in framework/src/Icons/)

patterns/

Theme-owned block patterns by category (hero/, cta/, template/, etc.) — generic sections and marketing layouts using core blocks. WooCommerce block patterns (wp:woocommerce/*) and the TI Wishlist pattern live in the Aegis Dash, not here. The theme keeps a Woo-free header/default so parts/header.html still resolves when WooCommerce is inactive.

Aegis Dash pattern directories (see Aegis Dash File Structure):

Related Posts layouts (blog-related-posts-*) live in the theme patterns/blog/related-posts-*.php. They are not registered from the plugin.

Pro premium patterns: wp-content/plugins/aegis-pro/patterns/.

Aegis plugins (Separate Repositories)

PathDocs
wp-content/plugins/aegis-dash/Aegis Dash docs
wp-content/plugins/aegis-pro/Pro docs

Generated / Excluded from Dev

Next Steps

Development Setup

Prerequisites

Ensure the following tools are installed on your machine:

ToolMinimum VersionPurpose
Node.js20.18 or later (.nvmrc pins 22)JavaScript build tools
npm10 or laterPackage management
PHP8.1 or laterTheme runtime and testing
Composer2 or laterPHP dependency management
GitAny recent versionVersion control
DockerLatestWordPress local environment (wp-env)

Checking Installed Versions

Copied!
Shell
node --version # Should output v20.x or laternpm --version # Should output 9.x or laterphp --version # Should output 8.1.x or latercomposer --version # Should output 2.xgit --version # Any recent versiondocker --version # Latest stable

Get the Source

Place the Aegis source in wp-content/themes/aegis, then open that folder:

Copied!
Shell
cd wp-content/themes/aegis

Install Dependencies

PHP Dependencies

Copied!
Shell
composer install

This installs all PHP packages into the vendor/ directory, including:

Node.js Dependencies

Copied!
Shell
npm install

This installs all JavaScript packages into the node_modules/ directory, including:

Node Version Management

The repository includes an .nvmrc file. If you use nvm:

Copied!
Shell
nvm use

This switches to the correct Node.js version automatically.

Local WordPress Environment

Aegis uses wp-env (powered by Docker) for local development. This provides a complete WordPress installation with zero manual configuration.

Starting the Environment

Copied!
Shell
npm run env:start

Or directly:

Copied!
Shell
npm run env:start

This starts:

Default Credentials

FieldValue
Admin URLhttp://localhost:8888/wp-admin/
Usernameadmin
Passwordpassword

Stopping the Environment

Copied!
Shell
npm run env:stop

Or:

Copied!
Shell
npx wp-env stop

Resetting the Environment

To start fresh with a clean WordPress installation:

Copied!
Shell
npx wp-env clean all

Environment Configuration

The .wp-env.json file configures the local environment:

Copied!
JSON
{ "core": null, "phpVersion": "8.1", "plugins": [], "themes": ["."], "port": 8888, "config": { "WP_DEBUG": true, "WP_DEBUG_LOG": true, "SCRIPT_DEBUG": true }}

Building Assets

After installing dependencies, build the theme assets:

Copied!
Shell
npm run build

For development with file watching:

Copied!
Shell
npm run dev

See Building Assets for detailed build documentation.

Directory Structure

After setup, your workspace should look like:

Copied!
Directory tree
aegis/├── .wp-env.json # wp-env configuration├── composer.json # PHP dependencies├── package.json # Node.js dependencies├── node_modules/ # Installed Node packages├── vendor/ # Installed PHP packages├── assets/ # Source files│ ├── css/ # Source stylesheets│ └── js/ # Source JavaScript├── src/ # Theme glue + block sources (compiled in place)├── parts/ # Template parts├── patterns/ # Block patterns├── styles/ # Style variations├── templates/ # Page templates└── theme.json # Theme configuration

Development Workflow

A typical development session:

  1. Start the environment: npm run env:start
  2. Start the theme watcher: npm run dev (in wp-content/themes/aegis)
  3. Plugin changes: run npm run dev or npm run build in wp-content/plugins/aegis-dash when editing map/modal/admin assets
  4. Open the site: http://localhost:8888
  5. Make changes to source files.
  6. View changes in the browser (auto-refreshed by the watcher).
  7. Run tests before committing: npm run test
  8. Commit changes using conventional commit messages.

IDE Configuration

VS Code

Recommended extensions:

PhpStorm

Aegis plugins (Optional)

To develop with the full Aegis ecosystem:

Place Aegis Dash source in wp-content/plugins/aegis-dash and, if you have access, the Pro source in wp-content/plugins/aegis-pro.

Then add them to .wp-env.json:

Copied!
JSON
{ "plugins": [ "../../../plugins/aegis", "../../../plugins/aegis-pro" ]}

Troubleshooting

Docker Not Running

Ensure Docker Desktop is running before starting wp-env.

Port 8888 Already in Use

Stop any other service using port 8888, or change the port in .wp-env.json.

Permission Issues

On Linux/macOS, you may need to run Docker commands with appropriate permissions.

Node.js Version Mismatch

Use nvm use to switch to the correct version specified in .nvmrc.

Next Steps

Building Assets

Theme Build

Copied!
Shell
cd wp-content/themes/aegiscomposer installnpm installnpm run build # Theme blocks → src/Blocks/npm run dev # Watch mode

Output: src/Blocks/ (countdown, slider, slide, toggle, toggle-content, related-posts). These are the theme’s fallback copies; Aegis Dash provides the same blocks.

Video uses WordPress core/video; the player and its editor assets are built in the Aegis Video add-on. For the Aegis Dash build, see Aegis Dash Building Assets.

Plugin Build

Copied!
Shell
cd wp-content/plugins/aegis-dashnpm installnpm run build # Admin app + the six TypeScript blocks (does not compile Map/Modal)

See Aegis Dash Building Assets.

Build Toolchain

ToolPurpose
@wordpress/scriptsWordPress-specific Webpack configuration
WebpackModule bundler
BabelJavaScript transpilation
PostCSSCSS processing
Sass (optional)CSS preprocessor support

Available Commands

Production Build

Copied!
Shell
npm run build

Creates optimized, minified production-ready assets:

Development Build

Copied!
Shell
npm run build:dev

Creates unminified development assets:

Development Watch Mode

Copied!
Shell
npm run dev

Starts Webpack in watch mode:

Press Ctrl + C to stop the watcher.

Build Output

Compiled assets are placed in the src/Blocks/ directory (gitignored; run npm run build after clone):

Copied!
Directory tree
src/Blocks/├── countdown/├── slider/├── slide/├── toggle/├── toggle-content/├── related-posts/└── blocks-manifest.php

Asset PHP Files

Each compiled JavaScript file generates a companion .asset.php file:

Copied!
PHP
<?php return array( 'dependencies' => array('wp-element', 'wp-blocks', 'wp-i18n'), 'version' => 'abc123def456',);

This file declares WordPress script dependencies and provides a version hash for cache busting. WordPress uses this during wp_enqueue_script().

Source File Structure

Block source files live in src/Blocks/:

Copied!
Directory tree
src/Blocks/├── countdown/│ ├── block.json│ ├── index.tsx│ ├── edit.tsx│ └── view.ts├── slider/├── slide/├── toggle/├── toggle-content/└── related-posts/

Video editor assets are built in the Aegis Video add-on.

Webpack Configuration

Aegis extends the default @wordpress/scripts Webpack config. Entries from block.json file:index.js / file:view.js are remapped to index.tsx / view.ts when those sources exist, then emitted in place under src/Blocks/.

The default configuration handles:

CSS Processing

CSS files are processed through PostCSS with the following plugins:

PluginPurpose
AutoprefixerAdds vendor prefixes for browser compatibility
postcss-importAllows @import statements
cssnano (production)Minifies CSS output

Writing CSS

Aegis stylesheets use standard CSS with CSS custom properties:

Copied!
CSS
.wp-block-aegis-countdown { display: flex; gap: var(--wp--preset--spacing--md); font-family: var(--wp--preset--font-family--lexend-deca);}

JavaScript Processing

JavaScript is compiled through Babel with WordPress presets:

Writing JavaScript

Block scripts use WordPress packages as externals:

Copied!
JavaScript
import { registerBlockType } from '@wordpress/blocks';import { useBlockProps } from '@wordpress/block-editor';registerBlockType( 'aegis/countdown', { edit: Edit, save: Save,} );

Cleaning Build Output

To remove all compiled assets:

Copied!
Shell
npm run clean

Or manually delete compiled files under src/Blocks/ (see .gitignore).

Environment Variables

VariablePurposeDefault
NODE_ENVBuild modeproduction (build) / development (dev)
SCRIPT_DEBUGWordPress debug modeLoads unminified assets

Troubleshooting

Build Fails with Module Errors

Copied!
Shell
rm -rf node_modulesnpm installnpm run build

Stale Build Output

Copied!
Shell
npm run cleannpm run build

Watch Mode Not Detecting Changes

Translations

The theme catalog is languages/aegis.pot (text domain aegis). It does not include Aegis Dash strings.

Copied!
Shell
cd wp-content/themes/aegisnpm run translate # Requires `wp` on PATHnpm run translate:studio # WordPress Studio

prepare-translate.js copies vendored Icon, Marquee, Newsletter, Accordion, SVG, Visibility, and Query Loop sources into build/I18nScan for the scan (vendor/ is excluded). Bundled editor.js is not scanned; live SVG inspector strings come from svg-editor.js. WP-CLI scans JavaScript, not TypeScript, so run npm run build first if you changed theme block *.tsx / *.ts sources (for example src/Blocks/slider/edit.tsx, countdown/edit.tsx, toggle/index.tsx, related-posts/edit.tsx). Plugin strings belong in wp-content/plugins/aegis-dash/languages/aegis.pot. Pro strings belong in wp-content/plugins/aegis-pro/languages/aegis-pro.pot. See Aegis Dash Building Assets and Development Tools.

Next Steps

Development Tools

Repository policy

LocationIn the source repositoryIn theme zip
tools/ maintained scriptsYesNo
tools/wpaudit/ source (src/, tests/, composer.json/lock, configs)YesNo
tools/scratch/No (gitignored)No
tools/wpaudit/vendor/, .phpunit.cache/, coverage/No (gitignored)No

Build and translate

Copied!
Shell
npm run build # webpack + generate-blocks-manifest.phpnpm run clean # clean-build.jsnpm run translate # prepare-translate.js + wp i18n make-pot + finish-translate.js

On WordPress Studio sites, use npm run translate:studio instead of npm run translate. The prepare step copies Icon library PHP/JS, Marquee editor JS, Newsletter PHP/JS, Accordion PHP, SVG editor JS/PHP, Visibility editor JS, and Query Loop PHP/JS into build/ so those vendor strings are included even though vendor/ is excluded from the scan. Bundled editor.js is not copied; SVG inspector strings come from svg-editor.js. Run npm run build first if you changed theme block TypeScript (*.tsx / *.ts); WP-CLI scans the compiled JavaScript.

Aegis Dash strings are not in this catalog. Generate wp-content/plugins/aegis-dash/languages/aegis.pot from the plugin (npm run translate or npm run translate:studio in wp-content/plugins/aegis-dash). Pro uses wp-content/plugins/aegis-pro/languages/aegis-pro.pot.

audit-patterns.php

Validates pattern slugs, block references, and template cross-links across the theme, Aegis Dash, and Pro pattern trees.

Copied!
Shell
npm run audit-patterns# WordPress Studio:npm run audit-patterns:studio

Scanned directories:

Checks: duplicate slugs, missing pattern references in templates, unregistered blocks, theme.json custom template file existence.

Expected baseline (without WooCommerce active): WooCommerce block warnings marked optional; Pro blocks error when Pro is inactive. Re-run after doc or pattern changes.

migrate-icons (WP-CLI)

Converts leftover Image Icon blocks (core/image + is-style-icon) and legacy aegis/{set}/{name} Icon IDs to the WordPress Icon block (core/icon).

Copied!
Shell
wp aegis migrate-icons# WordPress Studio:studio wp aegis migrate-iconsstudio wp aegis migrate-icons --dry-run

See Updating and SVG Icons.

WPAudit (tools/wpaudit/)

PHPUnit suite for theme quality checks. CI runs composer test:wpaudit after composer install in tools/wpaudit/.

Scratch scripts

One-off Site Editor probes and local diagnostics belong in tools/scratch/ (gitignored). Do not document scratch scripts in this page unless they are promoted to the maintained list above.

Next Steps

Code Quality

Tools Overview

ToolLanguagePurpose
ESLintJavaScriptLinting and static analysis
stylelintCSSCSS linting and standards
PHPCSPHPPHP coding standards enforcement
PrettierJS/CSS/JSONCode formatting (via @wordpress/scripts)
EditorConfigAllConsistent editor settings

ESLint (JavaScript)

ESLint enforces the WordPress JavaScript coding standards with Aegis-specific rules.

Running ESLint

Copied!
Shell
# Lint all JavaScript filesnpm run lint:js# Lint with auto-fixnpm run lint:js -- --fix

Configuration

ESLint uses the @wordpress/eslint-plugin configuration as its base:

Copied!
JSON
{ "extends": ["plugin:@wordpress/eslint-plugin/recommended"], "rules": { // Aegis-specific overrides }}

Key Rules

RuleEnforcement
No unused variablesError
No console.log in productionWarning
WordPress i18n usageRequired for user-facing strings
React hooks rulesEnforced for block editor components
Import orderAlphabetical, grouped by type
No var declarationsMust use const/let

Auto-Fixing

Many ESLint issues can be fixed automatically:

Copied!
Shell
npm run lint:js -- --fix

Issues that require manual intervention will remain as errors in the output.

stylelint (CSS)

stylelint enforces the WordPress CSS coding standards.

Running stylelint

Copied!
Shell
# Lint all CSS filesnpm run lint:css# Lint with auto-fixnpm run lint:css -- --fix

Configuration

stylelint uses the @wordpress/stylelint-config as its base:

Copied!
JSON
{ "extends": ["@wordpress/stylelint-config"], "rules": { // Aegis-specific overrides }}

Key Rules

RuleEnforcement
Property orderGrouped by type (position, display, box model, typography)
Color formatHex values must be lowercase
No duplicate propertiesError
Selector specificityMax specificity enforced
Custom property namingMust follow theme token conventions
No !importantWarning (avoid unless necessary)
Unit usagePrefer rem/em for typography, px for borders

PHPCS (PHP)

PHPCS enforces the WordPress PHP coding standards using the WordPress Coding Standards ruleset.

Running PHPCS

Copied!
Shell
# Check all PHP filescomposer standards:check# (also available as: composer lint, or npm run lint:php)# Or directly./vendor/bin/phpcs# Auto-fix with PHPCBFcomposer standards:fix# Or directly./vendor/bin/phpcbf

Configuration

PHPCS is configured via phpcs.xml.dist:

Copied!
XML
<?xml version="1.0"?><ruleset name="Aegis Theme"> <description>Coding standards for Aegis theme</description> <rule ref="WordPress"/> <rule ref="WordPress-Extra"/> <rule ref="WordPress-Docs"/> <config name="text_domain" value="aegis"/> <config name="minimum_wp_version" value="7.0"/> <config name="prefixes" value="aegis,Aegis"/> <file>./inc</file> <file>./functions.php</file> <exclude-pattern>/vendor/*</exclude-pattern> <exclude-pattern>/node_modules/*</exclude-pattern> <exclude-pattern>/build/*</exclude-pattern></ruleset>

Key Standards

StandardEnforcement
WordPress naming conventionsFunctions: snake_case, Classes: PascalCase
Function prefixingAll functions prefixed with aegis_
Hook documentationInline documentation for all hooks
Escaping outputAll output must be escaped
Sanitizing inputAll input must be sanitized
Nonce verificationRequired for form processing
Text domainMust use aegis for all translatable strings

Running All Linters

To run all linting tools in a single command:

Copied!
Shell
npm run lint

This runs ESLint, stylelint, and PHPCS in sequence.

Pre-Commit Hooks

Linting runs automatically before each commit via Git hooks (configured with husky or similar):

  1. Staged JavaScript files are checked with ESLint.
  2. Staged CSS files are checked with stylelint.
  3. Staged PHP files are checked with PHPCS.
  4. If any linter reports errors, the commit is blocked.

EditorConfig

The .editorconfig file ensures consistent formatting across editors:

Copied!
INI
root = true[*]charset = utf-8end_of_line = lfindent_style = tabindent_size = 4insert_final_newline = truetrim_trailing_whitespace = true[*.{json,yml,yaml}]indent_style = spaceindent_size = 2[*.md]trim_trailing_whitespace = false

IDE Integration

Most editors can run these tools automatically on save:

VS Code Settings

Copied!
JSON
{ "editor.formatOnSave": true, "eslint.validate": ["javascript", "javascriptreact"], "stylelint.validate": ["css"], "phpcs.enable": true}

Ignoring Rules

When you need to suppress a linting rule (use sparingly):

ESLint

Copied!
JavaScript
// eslint-disable-next-line no-consoleconsole.log( 'Debug output' );

stylelint

Copied!
CSS
/* stylelint-disable-next-line declaration-no-important */color: red !important;

PHPCS

Copied!
PHP
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscapedecho $already_escaped_html;

Always include a comment explaining why the rule is being suppressed.

Continuous Integration

Linting runs as part of the CI/CD pipeline on every pull request. A PR cannot be merged if linting fails. See Contributing for the full pull request workflow.

Next Steps

Testing

Testing Tools

ToolTypePurpose
PHPUnitUnit/IntegrationPHP logic testing
WPAuditPerformanceWordPress-specific performance audit
pa11y-ciAccessibilityAutomated WCAG2AA checking (threshold 0; see .pa11yci.json)

PHPUnit

PHPUnit coverage is the WPAudit suite in tools/wpaudit/. CI runs the same command. There is no separate tests/Unit tree in this theme.

Running PHPUnit

Copied!
Shell
# Same as CIcomposer test:wpaudit# Or from the package directorycomposer install --working-dir=tools/wpauditcomposer test --working-dir=tools/wpauditcomposer test:coverage --working-dir=tools/wpaudit

Configuration

PHPUnit is configured in tools/wpaudit/phpunit.xml (PHPUnit 10.5, bootstrap vendor/autoload.php).

Test Structure

Copied!
Directory tree
tools/wpaudit/├── phpunit.xml├── src/ # Analyzers, models, configuration└── tests/Unit/ # PHPUnit tests (WPAudit\Tests\)

Writing Tests

Add cases under tools/wpaudit/tests/Unit/ in the WPAudit\Tests\ namespace. See existing analyzer and model tests in that tree.

WPAudit

WPAudit is the PHPUnit package in tools/wpaudit/. It analyzes theme files for performance, SEO, and accessibility findings. Run it with composer test:wpaudit. Rule IDs and configuration are documented in tools/wpaudit/README.md.

pa11y-ci (Accessibility)

pa11y-ci runs automated accessibility tests against rendered pages (home, post, search, page, 404), checking for WCAG2AA violations with a zero-issue threshold.

Running pa11y

Copied!
Shell
npm run test:a11y # Uses .pa11yci.json (defaults to http://localhost:8080/)npm run test:a11y:env # Single URL against wp-env (http://localhost:8888/)

Prerequisites

A WordPress site must be reachable at the configured host:

Copied!
Shell
# CI-style host (8080) — match .pa11yci.jsonnpm run test:a11y# Local wp-envnpm run env:startnpm run test:a11y:env

Configuration

Defaults live in .pa11yci.json. The CI accessibility workflow (accessibility.yml) seeds a post and page, writes .pa11yci.ci.json with resolved ?p= / ?page_id= URLs (because php -S does not rewrite pretty permalinks), then runs pa11y-ci --threshold 0.

Copied!
JSON
{ "defaults": { "timeout": 60000, "wait": 1000, "standard": "WCAG2AA", "runners": ["axe", "htmlcs"], "ignore": ["warning"] }, "urls": [ "http://localhost:8080/", "http://localhost:8080/?p=1", "http://localhost:8080/?s=test", "http://localhost:8080/?page_id=2", "http://localhost:8080/?p=999999" ]}

.pa11yci.ci.json is gitignored. For wp-env, use npm run test:a11y:env or retarget the urls host to 8888.

What pa11y Checks

CategoryExamples
Color contrastText against backgrounds
ARIA usageCorrect roles, states, properties
Form labelsInputs with associated labels
HeadingsLogical heading hierarchy
ImagesAlt text presence
LinksDistinguishable link text
LandmarksProper page regions
KeyboardFocus order and visibility

Handling False Positives

If pa11y reports an issue that is a false positive:

  1. Verify the issue is genuinely a false positive by manual testing.
  2. Add the specific rule to the ignore list in the configuration.
  3. Document why the rule is ignored.

Running All Tests

To run the complete test suite:

Copied!
Shell
npm run test

This typically runs:

  1. PHPUnit tests.
  2. JavaScript tests (if any).
  3. Linting checks.

For a comprehensive check including accessibility:

Copied!
Shell
npm run test:a11ycomposer test:wpaudit

Continuous Integration

Tests run automatically on every pull request:

CheckTriggerMust Pass
PHPUnitEvery PRYes
ESLintEvery PRYes
stylelintEvery PRYes
PHPCSEvery PRYes
pa11y-ciEvery PRYes
WPAuditNightly / ReleaseAdvisory

PRs cannot be merged if any required check fails.

Test Coverage

To generate a code coverage report:

Copied!
Shell
./vendor/bin/phpunit --coverage-html coverage/

Open coverage/index.html in a browser to view the report.

Coverage targets:

AreaTarget
Service classes80%+
Utility functions90%+
Block registration70%+
Overall75%+

WordPress 7.1 Compatibility Checklist

Run this matrix before raising Tested up to to 7.1. Do not remove Aegis breakpoints; they complement Core responsive style states (see Enhanced Core Blocks).

CheckHow
Core responsive style statesEdit Group/Columns/Image/Heading/Button with viewport styles; confirm front-end CSS
Aegis Display / visibilityToggle hide-on-mobile, display/order/width; confirm Landscape/Tablet buttons still work
Iframed editorPost Editor + Site Editor: Global Styles, overlays, icons, Aegis inspector panels
React 19 experimentEnable Gutenberg gutenberg-react-19; open theme blocks and Aegis Dash admin/editor UIs; watch console
Regression baselineSpot-check the same flows on WordPress 7.0

Static scan (theme + Aegis Dash sources): no __next40pxDefaultSize or useResizeCanvas usage found. Vendored map libraries in Aegis Pro may still reference legacy React APIs — retest those screens under the React 19 experiment and update upstream packages when available.

Next Steps

Contributing

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:

BranchPurposeMerges Into
mainProduction-ready releases—
developIntegration branch for next releasemain
feature/*New featuresdevelop
fix/*Bug fixesdevelop
hotfix/*Critical production fixesmain and develop
docs/*Documentation updatesdevelop

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:

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

PrefixUsage
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

CriterionDescription
Code qualityFollows coding standards, well-structured
FunctionalityWorks as intended, no regressions
PerformanceDoes not degrade page load performance
AccessibilityAccessibility-ready foundation targeting WCAG 2.2 AA; no a11y regressions
TestingAppropriate tests included
DocumentationCode 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:

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

Contributing Documentation

For general contribution workflow (branches, commits, PRs), see Contributing.

Where documentation lives

Docs are kept per product. Each product has its own docs/ folder next to its code and its own aegis-docs.json manifest:

ProductTypeLocal treeDoc Set
Aegis themethemewp-content/themes/aegis/docs/Aegis theme
Aegis Dashpluginwp-content/plugins/aegis-dash/docs/Aegis Dash
Aegis Proadd-onwp-content/plugins/aegis-pro/docs/Aegis Pro
Aegis Adsadd-onwp-content/plugins/aegis-ads/docs/Aegis Ads

The docs/ folders are local only. Each repository lists /docs/ in .gitignore, so documentation is never pushed to GitHub or packed into a release zip.

The Aegis Docs plugin imports each folder into the site as one Doc Set. The Markdown files are the source; the site shows what the import last read:

Copied!
Shell
wp aegis-docs import wp-content/themes/aegis/docs wp-content/plugins/aegis-dash/docs wp-content/plugins/aegis-pro/docs wp-content/plugins/aegis-ads/docs

Import related folders together so links between them resolve. Running the import again updates the existing docs, so edit the Markdown and re-import instead of editing imported pages.

How products are organised

Every product is a Doc Set under a brand set (Aegis). A product is one of four types, and a product can name the set it builds on. The manifest’s set block says so:

Copied!
XML
"set": { "name": "Aegis Pro", "slug": "pro", "type": "add-on", "extends": "aegis-dash", "order": 2, "parent": { "name": "Aegis", "slug": "aegis" }}
KeyMeaning
typetheme, child-theme, plugin or add-on. Shown as a badge on the Doc Set header.
extendsSlug of the Doc Set this product builds on, such as a child theme’s parent theme or an add-on’s base plugin. The header links to it, so the child’s docs only need to cover what differs.
aliasesEarlier slugs of a renamed product, so the import keeps its Doc Set and docs instead of creating a copy.
orderPosition among the products in the brand.

The manifest’s package id ties each page to its source file. Never change it after the first import.

To document a new theme, child theme or plugin, create its docs/ folder and manifest with its own slug and order, document only what belongs to that product, and link to the parent product’s docs for the rest.

The theme and its siblings link to each other with normal relative paths (for example ../../../../plugins/aegis-dash/docs/blocks/custom-blocks.md); the import turns them into links to the matching page.

Root files that are also documentation:

Screenshots go in the folder’s screenshots/ directory and are linked like any image: ![What the screenshot shows](../screenshots/name.png). On import, each PNG, JPG, GIF, WebP, or AVIF file a doc links to is uploaded to the Media Library once and reused on later imports.

Scope rules

Page anatomy

Each page is a Markdown file under docs/. Typical layout:

Copied!
Directory tree
docs/├── _sidebar.md # Nav (required for every new page)├── _footer.md├── home.md├── getting-started/├── using-the-theme/├── design-system/├── blocks/├── features/├── development/├── reference/└── troubleshooting/

File naming

Docs use wiki-style links:

Copied!
Markdown
[[color-palette]][[color-palette|Color Palette]]

The slug is the file name without .md. For links to another docs tree, use normal relative Markdown links:

Copied!
Markdown
[Aegis Dash Patterns](../../../../plugins/aegis-dash/docs/features/plugin-patterns.md)

Headings and tone

Adding or updating a page

  1. Create or edit the .md file in the correct folder under docs/.
  2. Add the file to its section in docs/aegis-docs.json, and a sidebar entry in docs/_sidebar.md. Files missing from the manifest are imported into a “More” section.
  3. If the page is a primary topic, add a one-line link under the matching section in docs/home.md.
  4. From feature/code PRs, update any page that would otherwise be wrong (counts, hexes, APIs, file paths).
  5. Re-import the folder to see the change on the site. Documentation stays local, so there is nothing to commit or push.
Copied!
Markdown
## Development- [[contributing|Contributing]]- [[documentation|Contributing Documentation]]

Checklist (docs PR)

FileWhen to update
DESIGN.mdDesign tokens change in theme.json
readme.txtPublic feature summary / pattern counts for WordPress.org
README.mdContributor overview tables that mirror the design system
INSTRUCTIONS.md / BUILD.mdLocal setup or build commands change

What not to do

Next steps

Deployment

Release Process

Versioning

Aegis follows semantic versioning (SemVer):

TypeFormatWhen
Patch1.0.xBug fixes, documentation updates
Minor1.x.0New features, backwards compatible
Majorx.0.0Breaking changes, major rewrites

Release Workflow

  1. Feature development — Work happens on feature branches.
  2. Pull request — Submit PR to develop branch.
  3. Code review — PR is reviewed by maintainers.
  4. CI passes — All tests, linting, and checks must pass.
  5. Merge to develop — PR is merged into the development branch.
  6. Release preparation — When ready, develop is merged to main.
  7. Version bump — Update version numbers in style.css, package.json, and readme.txt, and update CHANGELOG.md.
  8. Tag — Push a tag in the form v1.2.3 (or v1.2.3-rc1).
  9. Automated build — The tag starts the release workflow (release.yml), which builds and uploads the package (see below).
  10. Publish — Review the draft release on GitHub and publish it. Sites update only after the release is published.

The Aegis Dash is released separately from its own repository.

The Release Workflow (release.yml)

Pushing a v* tag runs Release Aegis Theme:

  1. Checks that the tag is semantic (v1.2.3 or v1.2.3-rc1).
  2. Runs npm ci and npm run build (Node 20).
  3. Installs Composer dependencies with dev packages (PHP 8.3) and runs npm run lint:js, npm run lint:css, vendor/bin/phpcs, and composer validate --strict.
  4. Reinstalls Composer dependencies with --no-dev --optimize-autoloader.
  5. Copies the theme into an aegis/ folder with rsync, skipping everything in .distignore.
  6. Checks that aegis/style.css, functions.php, vendor/autoload.php, screenshot.png, and src/Blocks/ exist, and that tools/, vendor/aegis/wpaudit/, languages/, and LICENSE are not in the package.
  7. Zips it as aegis.zip (the zip’s root folder is aegis/) and writes aegis.zip.sha256.
  8. Creates a draft GitHub release with both files attached and generated release notes.

The theme’s GitHub updater installs the aegis.zip asset from the latest published release, so a draft is never offered to sites. Keep the asset name aegis.zip and the aegis/ root folder: the updater and the upload installer both rely on them. See Updating.

Holding a release until Aegis Dash is ready

If a theme release needs a newer Aegis Dash, add a line like this to the release notes before publishing:

Copied!
Markdown
Requires Aegis Dash: 1.1.0

Sites whose Aegis Dash is missing, inactive or older than that version are not offered the update, and an admin notice explains why. The updater reads the running plugin’s version, so it does not matter what the plugin folder is called. is accepted as well.

Building a Release Package Locally

There is no npm run package script. To reproduce the workflow’s package on your machine:

Copied!
Shell
# Ensure clean stategit checkout maingit pull origin main# Build assets and install production dependenciesnpm cinpm run buildcomposer install --no-dev --optimize-autoloader# Copy into an aegis/ folder, skipping .distignore entries, then zip itrsync -am ./ aegis/ --exclude-from='.distignore'zip -r aegis.zip aegis

.distignore keeps these out of the package, among others:

Server Deployment

Requirements

RequirementDetails
PHP8.1 or later
WordPress7.0 or later
vendor/ directoryMust be present (Composer production dependencies)
Compiled block assetsMust be present in src/Blocks/ (built by npm run build)

Deployment via Upload

  1. Download the release aegis.zip.
  2. Upload through Appearance → Themes → Add New → Upload.
  3. Activate the theme.

Deployment via Git

For servers with Git access:

Copied!
Shell
cd wp-content/themes/aegisgit fetch origingit checkout v1.0.0 # specific release tagcomposer install --no-dev --optimize-autoloader

Note

Running npm run build on the server is not recommended. Always deploy pre-built assets.

Deployment via CI/CD

Automated deployment pipeline example:

Copied!
CI/CD
deploy: steps: - checkout code - composer install --no-dev --optimize-autoloader - npm ci - npm run build - rsync to production (excluding dev files) - clear caches

Files to Deploy

IncludeExclude
src/ (PHP, plus compiled block JS/CSS and block.json in src/Blocks/)node_modules/
vendor/ (no-dev)tests/
assets/ (fonts, icons, images).git/, CI configuration
parts/build/, tools/, docs/
patterns/webpack.config.js, eslint.config.cjs, tsconfig.json
styles/phpcs.xml
templates/composer.json, composer.lock, package.json
theme.json, style.css, functions.php, index.php, embed-content.php, screenshot.png, readme.txt.wp-env.json, .editorconfig

.distignore is the full exclusion list.

Deployment Checklist

Before deploying to production:

Post-Deployment

After deploying a new version:

  1. Clear caches — Purge page cache, object cache, and CDN cache.
  2. Verify the site — Check the homepage, key pages, and WooCommerce.
  3. Check the error log — Look for any new PHP errors or warnings.
  4. Test critical paths — Complete a test purchase (if WooCommerce), submit a form.
  5. Run a Lighthouse audit — Ensure performance did not regress.

Rollback Procedure

If a deployment causes issues:

Via Theme Upload

  1. Download the aegis.zip of the previous release.
  2. Upload and activate the previous version.

Via Git

Copied!
Shell
cd wp-content/themes/aegisgit checkout v1.0.0-previous # previous release tagcomposer install --no-dev --optimize-autoloader

Via Backup

Restore the full site backup taken before deployment.

Environment-Specific Configuration

Development

Copied!
PHP
define( 'WP_DEBUG', true );define( 'WP_DEBUG_LOG', true );define( 'SCRIPT_DEBUG', true );

Staging

Copied!
PHP
define( 'WP_DEBUG', true );define( 'WP_DEBUG_LOG', true );define( 'SCRIPT_DEBUG', false );

Production

Copied!
PHP
define( 'WP_DEBUG', false );define( 'SCRIPT_DEBUG', false );

CDN Considerations

When using a CDN:

Next Steps

Architecture

Four-Layer Model

LayerLocationResponsibility
Themewp-content/themes/aegisFSE templates, generic theme patterns (excluding WC/TI block patterns), fallback copies of the six Aegis blocks (until a later release removes them), thin PHP glue
Frameworkvendor/aegis/frameworkCore block enhancements, variations, design system engine, injection hook firing
Aegis Dashwp-content/plugins/aegis-dashAdmin, the Aegis blocks (Map, Modal, Slider, Toggle, Countdown, Related Posts), snippets, conditionals, integrations, analytics, WooCommerce/TI Wishlist block patterns (gated)
Pro pluginwp-content/plugins/aegis-proHook pattern CPT, video stack, query pro, license, Pro patterns

Template gating

FSE templates remain in the theme (templates/ + theme.json). WooCommerce and wishlist templates are hidden from the Site Editor template picker when dependencies are inactive via vendor/aegis/framework/src/DesignSystem/Templates.php (get_block_templates filter). See Template Reference.

Theme Overview

Namespace Structure (src/)

Copied!
Directory tree
src/├── bootstrap.php # Composer files autoload — starts the theme services below├── helpers.php # Pattern URL helpers (required from functions.php)├── NavigationFallback.php # block_core_navigation_render_fallback: sample menu instead of every page├── PatternDependencies.php # rest_pre_dispatch (patterns endpoint): hide patterns with blocks from inactive plugins├── Admin/│ ├── CompanionNotice.php # Install Aegis Dash notice (release zip)│ └── GitHubUpdater.php # update_themes_github.com: updates from GitHub releases└── Blocks/ # block.json + TSX sources (compiled in place) ├── BlockRegistrar.php ├── RelatedPostsQuery.php ├── ToggleId.php # Stable data-toggle-id for Toggle └── blocks-manifest.php # Generated by npm run build

Framework (vendor/aegis/framework)

Registered via ServiceProvider when Aegis::register() runs:

Bootstrap Flow

1. functions.php

Loads Composer autoload, helpers, textdomain, and Aegis::register().

2. src/bootstrap.php

Initializes CompanionNotice, GitHubUpdater, BlockRegistrar, NavigationFallback, and PatternDependencies. Adds style.css as an editor style. Icon packs under vendor/aegis/icons/public/icons/ (including payment) are discovered automatically.

3. Aegis::register()

Boots the framework ServiceProvider (design system, core blocks, integrations).

What Moved to Plugins

These features are not in theme PHP — see plugin docs:

FeatureDocumentation
AnalyticsAegis Dash Analytics
Conditionals admin/evaluatorConditional Logic
Admin dashboardAegis Dash Architecture
Multi-step checkoutWooCommerce Checkout
Integrations dashboardIntegrations Dashboard
Hook pattern CPTPro Hook Patterns
Map / Modal blocksAegis Dash Custom Blocks

Build Pipeline

Dual build — see Building Assets:

Next Steps