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.
Download aegis.zip from the latest Aegis release.
Log in to your WordPress admin dashboard.
Navigate to Appearance → Themes.
Click the Add New Theme button at the top of the page.
Click the Upload Theme button.
Click Choose File and select the downloaded .zip file.
Click Install Now.
Once the installation is complete, click Activate.
Method 2: Manual Installation via FTP or File Manager
Download aegis.zip from the latest Aegis release.
Extract the .zip file on your local machine.
Connect to your server via FTP or use your hosting control panel file manager.
Navigate to the wp-content/themes/ directory.
Upload the extracted aegis folder into the themes directory.
Log in to your WordPress admin dashboard.
Navigate to Appearance → Themes.
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
Warning
Deploying the theme without the vendor/ directory will cause a fatal error when WordPress attempts to load the theme.
Verify Activation
After activating Aegis:
Aegis listed as the active theme.
Visit your site frontend to confirm the theme is rendering correctly.
Navigate to Appearance → Editor to access the Site Editor.
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:
Aegis Pro — Coming soon. Requires the Aegis theme and Aegis Dash; docs
Installing Aegis Dash From the Theme Notice
While Aegis Dash is inactive, Appearance → Themes shows an admin notice to administrators who can install plugins.
If the plugin is not installed, Install downloads and installs the aegis-dash.zip package of the latest Aegis Dash release. The plugin is not hosted on WordPress.org.
If the plugin is installed but inactive, Activate turns it on.
After install or activation, you land on the Aegis dashboard.
If the automatic install fails, the notice links to the plugin releases page. Download aegis-dash.zip there and upload it under Plugins → Add New Plugin → Upload Plugin.
Dismissing the notice hides it for your user account.
Developers can pin a release or use a mirror with the aegis_companion_package_url filter. See Hooks and Filters.
Before performing any update, take the following precautions:
Back up your site — Create a full backup of your database and files.
Check the changelog — Review the release notes shown with the update on Dashboard → Updates, or the theme’s CHANGELOG.md, for breaking changes.
Test in staging — If possible, test the update on a staging environment first.
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.
Install and activate Aegis Dash 1.1.0 or newer (the theme’s notice on Appearance → Themes installs it).
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.
Extras marked Pro stay off until Aegis Pro is active, then you can turn them on.
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.
Install Aegis Dash from the theme’s notice or upload aegis-dash.zip.
Activate it. It deactivates the old Aegis plugin for you and keeps every setting.
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.
Related Posts
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:
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
Method 1: Automatic Updates From GitHub (Recommended)
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.
style.css declares Update URI: https://github.com/aegiswp/aegis, so WordPress does not look for Aegis on WordPress.org.
The theme’s updater (src/Admin/GitHubUpdater.php) reads the latest published release of aegiswp/aegis. Drafts and pre-releases are skipped.
If the release notes contain a line such as Requires Aegis Dash: 1.1.0, the release is held back until Aegis Dash is installed, active and at least that version. An admin notice on the Themes, Updates and Plugins screens explains the wait.
When that release is newer than the installed version, WordPress shows the usual Update now link under Appearance → Themes and in Dashboard → Updates. The release notes open from the update link.
The update installs the release asset aegis.zip, which contains a single aegis/ folder, so the theme folder keeps its name.
The auto-update toggle on the theme details screen works as for any other theme.
Release data is cached for 6 hours (30 minutes after an error) and cleared after any update.
To update:
Go to Dashboard → Updates (or Appearance → Themes).
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.
Theme files — All PHP, JSON, and asset files in the theme directory.
Default templates — Original templates are replaced with updated versions.
Default patterns — Bundled patterns are replaced with updated versions.
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:
Check file permissions on the wp-content/themes/ directory.
Ensure sufficient disk space is available.
Check the PHP error log for specific error messages.
Try the manual upload or FTP method as a fallback.
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:
Clear all caches (browser, plugin, server).
Deactivate and reactivate the theme.
Check Tools → Site Health for any reported issues.
If the issue persists, restore your backup and report the issue through Getting Support.
Rolling Back
To revert to a previous version:
Download the aegis.zip of the previous release.
Follow the manual update process (Method 2 or Method 3) using the older version file.
Staying Informed
To be notified of new releases:
New versions appear in Dashboard → Updates and on Appearance → Themes. Enable auto-updates for Aegis to install them automatically.
Requirements — Verify your environment meets the latest requirements.
Common Issues — Solutions to common problems after updating.
Theme Inventory
Updated November 22, 2026
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
Theme
Aegis
Author
Atmostfear Entertainment
Version
1.0.2
Requires WordPress
7.0
Tested up to
7.1.4
Requires PHP
8.1
License
GPL-2.0-or-later
Text domain
aegis
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.
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).
Family
Steps
Primary
12, including 25 through 950
Neutral
12, including 0 through 950
Success
3: 100, 500, 600
Info
3: 100, 500, 600
Warning
3: 100, 500, 600
Error
3: 100, 500, 600
Utility
Transparent, 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.
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).
Variable, weight 300–900, assets/fonts/lexend-deca.woff2, falls back to Lexend
JetBrains (JetBrains Mono)
jetbrains
Variable, 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.
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.
Variation
Character
Amber
Energetic, warm
Amethyst
Luxurious, mystical
Arctic
Clean, cool
Autumn
Warm, seasonal
Blossom
Gentle, feminine
Canary
Cheerful, attention-grabbing
Charcoal
Serious, professional
Copper
Industrial, warm
Coral
Vibrant, playful
Crimson
Bold, powerful
Desert
Earthy, natural
Dusk
Evening, atmospheric
Earth
Grounded, organic
Emerald
Rich, prestigious
Flamingo
Fun, creative
Forest
Natural, serene
Fuchsia
Vivid, expressive
Gilded
Premium, luxurious
Grayscale
Minimal, typographic
Grove
Natural, growth
Indigo
Deep, trustworthy
Ivory
Elegant, clean
Lagoon
Refreshing, tropical
Lavender
Calming, gentle
Lime
Energetic, fresh
Linen
Soft, comfortable
Marigold
Bright, optimistic
Midnight
Dramatic, sleek
Mist
Subtle, airy
Moss
Understated, natural
Neon
Bold, modern
Neutral
Versatile, quiet
Obsidian
Dramatic, high-contrast
Ocean
Professional, trustworthy
Orchid
Exotic, creative
Parchment
Vintage, literary
Peach
Warm, approachable
Pewter
Cool, professional
Plum
Rich, sophisticated
Raspberry
Bold, spirited
Rose
Romantic, soft
Rustic
Authentic, handcrafted
Sage
Calm, wise
Sand
Neutral, coastal
Sapphire
Premium, deep
Sepia
Vintage, nostalgic
Sky
Open, friendly
Slate
Professional, modern
Steel
Strong, utilitarian
Stone
Solid, dependable
Sunflower
Happy, vibrant
Tangerine
Energetic, warm
Tea
Refined, peaceful
Teal
Balanced, modern
Terracotta
Warm, artisanal
Vintage
Retro, eclectic
Violet
Creative, regal
Walnut
Warm, refined
Wine
Elegant, mature
Zinc
Default, 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
Template
File
Role
Index
index.html
Fallback loop
Front Page
front-page.html
Static front page
Blog Home
home.html
Posts page
Page
page.html
Default page. Also used for bbPress forum views when that integration is active
Single
single.html
Default post
Archive
archive.html
Generic archives
Author
author.html
Author archives
Author: Guest
author-guest.html
Guest author archives
Date
date.html
Date archives
Search
search.html
Search results
404
404.html
Not found
Page and post layouts
Template
File
Assignable to
Blank
blank.html
Page, post. No header or footer
Full Width
full-width.html
Page, post
Page (No Title)
page-no-title.html
Page, post
Page: Boxed
page-boxed.html
Page, post
Page: Hero Minimal
page-hero-minimal.html
Page
Page: Contact
page-contact.html
Page
Page: Landing
page-landing.html
Page
Page: With Sidebar
page-with-sidebar.html
Page, post
Single: Full Width
single-full-width.html
Post
Single: No Featured Image
single-no-featured-image.html
Post
Coming Soon
coming-soon.html
Page
Page: Coming Soon
page-coming-soon.html
Page
Maintenance
maintenance.html
Page
Content archives
Template
File
Category Archives
taxonomy-category.html
Category: Books
taxonomy-category-books.html
Category: Events
taxonomy-category-events.html
Category: Podcasts
taxonomy-category-podcasts.html
Category: Portfolio
taxonomy-category-portfolio.html
Category: Recipes
taxonomy-category-recipes.html
Category: Video
taxonomy-category-video.html
Tag Archives
taxonomy-post_tag.html
Tag: Featured
taxonomy-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.
Template
File
Archive: Product
archive-product.html
Single item: Product
single-product.html
Single Product: Landing
single-product-landing.html
Product Search Results
product-search-results.html
Search: Product
search-product.html
Taxonomy Product Category
taxonomy-product_cat.html
Taxonomy Product Tag
taxonomy-product_tag.html
Product Attribute
taxonomy-product_attribute.html
Product Category: Clothing
taxonomy-product_cat-clothing.html
Product Category: Digital
taxonomy-product_cat-digital.html
Product Category: Outlet
taxonomy-product_cat-outlet.html
Page: Cart
page-cart.html
Page: Checkout
page-checkout.html
Page: Checkout Multi-Step
page-checkout-multi-step.html
Order Confirmation
order-confirmation.html
Page: My Account
page-my-account.html
Page: Wishlist
page-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)
Pattern
Description
About Founder Story
A founder story section with image and narrative text.
About Mission Vision
A two-column mission and vision section with large text.
About Values Grid
A grid of company core values with icons and descriptions.
author (6)
Pattern
Description
Author Archive with Sidebar
An author archive with a sticky sidebar containing author details and a post list.
Author Archive
A full-width author archive with avatar header and three-column post grid.
Author Biography Card
A compact author card with avatar, name, role, short bio, and social links.
Author Biography Horizontal
A slim horizontal author strip with avatar, name, bio, and social links in a single row.
Author Biography
A centered author biography section with large avatar, bio text, and social links.
List with Author
A horizontal list layout with author information.
blog (16)
Pattern
Description
Blog Feed
Blog section with featured article, latest articles list, and newsletter signup.
Featured Post
A highlighted featured post layout.
Featured Posts
A grid of featured blog posts.
Grid Boxed
A boxed grid layout for blog posts.
Grid Compact
A compact grid with small thumbnails and titles.
Grid Masonry
A masonry-style grid with alternating post sizes.
Latest Posts
A section displaying the latest blog posts.
Minimal
A clean, text-focused minimal blog layout.
Related Posts: Cards
Boxed cards of related posts with surface background and shadow.
Related Posts: Grid
A 3-column grid of related posts with featured image, date, category, title, and excerpt.
Related Posts: List
A horizontal list of related posts with small thumbnails, titles, and dates.
Related Posts: Minimal
A text-only list of related posts with border separators.
Single Blog Card
A single blog post card layout.
Single Column
A single column blog post list.
Three Column Blog
A three-column blog post grid with pagination.
Two Column Featured
Two column layout with featured post and sidebar list.
commerce (8)
Pattern
Description
Money-Back Guarantee
A money-back guarantee section with SVG icon, heading, and description.
Payment Icons
Accepted payment method icons that inherit dark/light (payment/*-outline mono-outline marks).
Product Comparison
A side-by-side product comparison table pattern for comparing product features.
Product Reviews
A standalone product reviews section with star rating summary and individual review cards.
Recently Viewed Products
A section displaying recently viewed products using a product collection grid.
Shipping Information
A shipping policy and information section with SVG icons for delivery times, return policy, and international shipping.
Size Guide
An expandable size guide table pattern for apparel and clothing stores.
Trust Badges
A row of inline SVG trust icons for secure checkout, money-back guarantee, free shipping, and 24/7 support.
contact (3)
Pattern
Description
Form Boxed
A boxed contact form layout.
Contact Icons
Contact information with icons.
Contact Two Column
A 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)
Pattern
Description
Feature Banner
A scrolling banner for announcements or promotions.
Box
A boxed call-to-action section.
Commerce Free Shipping CTA
A slim announcement bar CTA promoting free shipping with a threshold and shop link.
Commerce Newsletter CTA
A newsletter signup CTA with discount incentive for store visitors.
Commerce Sale CTA
A bold sale banner CTA with countdown urgency, discount code, and shop button.
Horizontal
A horizontal call-to-action section.
Newsletter CTA
A newsletter subscription call-to-action section.
event (28)
Pattern
Description
Cinema About
An about section for a film with description and stat cards for ratings, awards, and format.
Cinema Cast & Crew
A dark section showcasing cast and crew members with circular avatars.
Cinema CTA
A dark call-to-action section for a cinema premiere with ticket button.
Cinema Hero
A dark cover hero section for a cinema screening or film premiere with poster, details, and CTA buttons.
Conference CTA
A dark call-to-action section for conference registration with early bird pricing.
Conference Hero
A dark hero section for a tech conference with stats and CTA buttons.
Conference Speakers
A keynote speakers section with avatar cards showing name, role, and bio.
Conference Tracks
A conference tracks section with bordered cards showing track names and descriptions.
Conference Venue
A venue and travel section with image and location details including hotel partners.
Exhibition About
An about section for an exhibition with curator statement and exhibition details.
Exhibition Artists
A featured artists section with cards showing artist name, medium, and description.
Exhibition Gallery
A gallery grid section showcasing exhibition artwork with captions.
Exhibition Hero
A cover hero section for an art exhibition with dates, description, and CTA buttons.
Exhibition Info
An information section with museum hours, location, and contact details.
Exhibition Tours
A guided tours section with tour options showing times, descriptions, and booking buttons.
Music Festival Hero
A vibrant cover hero section for a music festival with date, description, and CTA buttons.
Music Festival Info
An essential information section for a music festival with practical details.
Music Festival Lineup
A lineup section for a music festival organized by day with headliners and supporting acts.
Music Festival Passes
A festival passes pricing section with tiered options and features.
Talk Hero
A dark hero section for a talk or lecture with speaker details and CTA buttons.
Talk Series
An upcoming lecture series section with event cards showing dates and topics.
Talk Speaker
An about the speaker section with image, bio, and credentials.
Talk Topics
A what you will learn section with topic cards for a talk or lecture.
Workshop CTA
A dark call-to-action section for workshop enrollment with included items list.
Workshop Gallery
A gallery section showcasing student work and workshop moments.
Workshop Hero
A cover hero section for a workshop with instructor, date, and CTA buttons.
Workshop Instructor
An instructor profile section with image, bio, and credentials.
Workshop Schedule
A two-day workshop schedule with session times and descriptions.
faq (3)
Pattern
Description
Accordion With Sidebar
A wide accordion FAQ section.
Accordion
An accordion FAQ section.
FAQs
A frequently asked questions section.
featured (5)
Pattern
Description
Feature Alternating
Alternating feature sections with images and text.
Feature Grid Icons
A grid of features with icons and descriptions.
Feature Icon Boxes
A grid of icon boxes showcasing features or services.
Image
A feature section with image and content.
Feature Images Two Column
A two-column feature section with staggered images.
footer (6)
Pattern
Description
Centered
A centered footer with logo and copyright.
Footer Default
—
Minimal
A minimal footer layout.
Store Footer Default
A full store footer with shop links, customer service links, payment icons, and newsletter signup.
Store Footer Minimal
A minimal store footer with copyright, privacy/terms links, and payment icons — ideal for checkout and funnel pages.
Wide
A wide footer with multiple columns.
header (6)
Pattern
Description
Center Logo
A header with centered logo and navigation.
Header Center Menu
A header with centered menu navigation.
Header Default
—
Menu Left
A header with left-aligned menu.
Store Header Default
A full store header with logo, shop navigation, search, customer account, and mini-cart.
Store Header Minimal
A minimal store header with logo and secure checkout badge — ideal for checkout and funnel pages.
hero (7)
Pattern
Description
Hero Archive
A hero section for archive pages.
Hero Centered Dark
A dark centered hero with gradient background.
Hero Cover
A full-screen hero cover section.
Hero Image Below
A hero section with image below content.
Hero Minimal
A minimal hero with subheading, title, and short intro text.
Hero Split
A split hero section with text and image side by side.
Hero Video
A hero section with video background placeholder.
hidden (3)
Pattern
Description
Page 404
A 404 error page layout. Not shown in the inserter.
404 Illustrated
A 404 error page with a large illustration area and search prompt. Not shown in the inserter.
404 Minimal
A minimal 404 error page with heading and navigation link. Not shown in the inserter.
logos (3)
Pattern
Description
As Seen In
An “as seen in” press bar with publication logos.
Logo Grid
A grid of client or partner logos with a heading.
Logo Row
A single row of logos with a centered label above.
newsletter (3)
Pattern
Description
Newsletter Banner
A full-width dark newsletter banner with centered content.
Newsletter Inline
A compact inline newsletter signup with input and button side by side.
Newsletter Split
A split layout with content on one side and newsletter signup on the other.
notice (16)
Pattern
Description
Affiliate Disclaimer
A standard FTC-style affiliate earnings disclosure notice with an info icon.
Beta Disclaimer
A compact beta or experimental feature disclaimer tag.
Earnings Disclaimer
An earnings and income disclaimer for digital products, courses, and business opportunities.
Editorial Independence Disclaimer
A centered editorial independence and journalistic integrity statement.
Financial Disclaimer
An investment and financial information disclaimer with a currency icon.
Legal Disclaimer
A formal general-purpose legal and liability disclaimer with a separator line.
Medical Disclaimer
A prominent medical disclaimer warning that content is not professional health advice.
Sponsored Content Disclaimer
A compact inline disclosure for sponsored or paid partnership content.
Testimonial Disclaimer
A full-width results-not-typical disclosure for testimonials and case studies.
Age Verification Notice
An age verification gate notice with a lock icon and confirmation button.
Error Notice
A critical error notice box with a red background and error icon.
Geographic Restriction Notice
A geographic restriction notice for region-blocked content.
Info Notice
A general informational notice box with an info icon.
Success Notice
A success notice box with a green background and check icon.
Under Construction
A centered under-construction or maintenance placeholder notice.
Warning Notice
A warning notice box with an amber background and warning icon.
pages (20)
Pattern
Description
About Page
A complete about page layout with hero, story, team, and values.
Blog Page
A complete blog page with featured post and grid layout.
Cinema Event
A full page layout for a cinema screening or film premiere event.
Conference Event
A professional full page layout for a tech conference or summit.
Contact Page
A complete contact page with form, map, and contact details.
Exhibition Event
A minimal and elegant full page layout for an art exhibition or gallery event.
Funnel Sales Page
A long-form sales page with problem/solution framing, feature highlights, testimonials, FAQ, guarantee, and CTA — uses minimal header/footer.
Funnel Squeeze Page
A high-conversion squeeze page with headline, benefit bullets, and email capture form — uses minimal header/footer.
Funnel Thank You Page
A post-purchase thank you page with order confirmation message, next steps, upsell product grid, and social sharing — uses minimal header/footer.
Page Home
—
Landing Page
A full landing page with hero, features, social proof, testimonials, contact form, and closing CTA.
Music Festival
A vibrant full page layout for a music festival or concert event.
Portfolio Page
A 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 Page
A complete services page layout showcasing offerings.
Shop Full Width
A full-width shop page with top-bar filters and a wide product grid without sidebar.
Shop Page
A complete shop landing page for e-commerce sites.
Talk & Lecture Event
A focused full page layout for a single talk, lecture, or keynote presentation.
Workshop Event
A full page layout for a hands-on workshop or training event.
portfolio (3)
Pattern
Description
Portfolio Image Gallery Grid
A grid-based image gallery for portfolios.
Portfolio Image Gallery
An image gallery for portfolio showcases.
Project Showcase
A detailed project showcase layout.
pricing (4)
Pattern
Description
Pricing Comparison Table
A feature comparison table across multiple pricing plans.
Pricing Single Highlight
A single highlighted pricing card with feature list and CTA.
Pricing Three Column
A three-column pricing table.
Pricing Two Column
A two-column pricing comparison layout.
product (3)
Pattern
Description
Product Category Grid
Product category cards with images, titles, and product counts.
Featured Product Grid
A three-column featured products grid with sale badges, ratings, and Add to Cart buttons.
On Sale Products
On-sale products grid filtered to show only discounted items.
sidebar (1)
Pattern
Description
Sidebar Default
A complete blog sidebar with author bio, search, recent posts, categories, archives, calendar, tags, and social links.
slider (6)
Pattern
Description
Books Slider
A full-width book slider with cover image on the left and title, description, and CTAs on the right.
Features Slider
A features carousel displaying service cards with icons and descriptions.
Hero Slider
A full-width hero slider with call-to-action buttons.
Portfolio Carousel
A multi-slide portfolio carousel showcasing projects with hover overlays.
Team Carousel
A team members carousel with profile photos and social links.
Testimonials Slider
A testimonials carousel with customer reviews, avatars, and star ratings.
stats (4)
Pattern
Description
Stats Four Columns
A four-column statistics section.
Stats Progress Bars
A stats section with labeled progress bars showing skill or completion percentages.
Stats Three Columns Dark
A dark three-column statistics section.
Stats Two Column Icons
A two-column stats section with icons and descriptions.
team (4)
Pattern
Description
Team Cards Social
Team member cards with photos, roles, bios, and social links.
Team Grid Simple
A simple grid layout for team members.
Team Members
A team members section.
Team Spotlight
A single team member spotlight with large photo and detailed bio.
template (48)
Pattern
Description
Template 404
Not shown in the inserter.
Archive Product
Not shown in the inserter.
Template Archive
Not shown in the inserter.
Author Guest
Not shown in the inserter.
Template Author
Not shown in the inserter.
Blank
Minimal page shell with skip link and main landmark. Authors should supply exactly one h1 in post content. Not shown in the inserter.
Coming Soon
Not shown in the inserter.
Template Date
Not shown in the inserter.
Front Page
Not shown in the inserter.
Full Width
Not shown in the inserter.
Blog Home
Not shown in the inserter.
Maintenance
Not shown in the inserter.
Order Confirmation
Not shown in the inserter.
Page Boxed
Not shown in the inserter.
Page Cart
Not shown in the inserter.
Page Checkout Multi-Step
Not shown in the inserter.
Page Checkout
Not shown in the inserter.
Page Coming Soon
Not shown in the inserter.
Page Contact
Not shown in the inserter.
Page Hero Minimal
Not shown in the inserter.
Page Landing
Not shown in the inserter.
Page My Account
Not shown in the inserter.
Page No Title
Page template without an automatic title. Authors must supply exactly one h1 heading in the page content. Not shown in the inserter.
Page Wishlist
Not shown in the inserter.
Page With Sidebar
Not shown in the inserter.
Template Page
Not shown in the inserter.
Search Product
Not shown in the inserter.
Template Search
Not shown in the inserter.
Single Full Width
Not shown in the inserter.
Single No Featured Image
Not shown in the inserter.
Single Product Landing
Not shown in the inserter.
Single Product
Not shown in the inserter.
Template Single
Not shown in the inserter.
Category Books
Not shown in the inserter.
Category Events
Not shown in the inserter.
Category Podcasts
Not shown in the inserter.
Category Portfolio
Not shown in the inserter.
Category Recipes
Not shown in the inserter.
Category Video
Not shown in the inserter.
Category Archive
Not shown in the inserter.
Tag Featured
Not shown in the inserter.
Tag Archive
Not shown in the inserter.
Product Attribute
Not shown in the inserter.
Product Category Clothing
Not shown in the inserter.
Product Category Digital
Not shown in the inserter.
Product Category Outlet
Not shown in the inserter.
Taxonomy Product Category
Not shown in the inserter.
Taxonomy Product Tag
Not shown in the inserter.
testimonial (4)
Pattern
Description
Testimonial Cards Grid
A grid of testimonial cards with ratings.
Testimonial Quote Large
A large centered testimonial quote.
Testimonial Single
A single testimonial quote.
Testimonial Three Column
A three-column testimonial section.
timeline (3)
Pattern
Description
Timeline Horizontal
A horizontal timeline with numbered step cards.
Timeline Stacked
A minimal stacked timeline with left border accent and date labels.
Timeline Vertical
A classic vertical timeline with alternating left and right entries.
utility (6)
Pattern
Description
Color Palette
—
Utility Dark Mode Toggle
—
Gradients
—
Patterns
Not shown in the inserter.
Skip to Content
Accessibility 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.
Block
Name
What it is
Countdown
aegis/countdown
Timer to a date and time, with segments, labels, and expiry behavior
Slider
aegis/slider
Carousel with layout and navigation options
Slide
aegis/slide
One slide. Only inside Slider
Toggle
aegis/toggle
Two-view content switcher. For FAQs, use Accordion List instead
Toggle Content
aegis/toggle-content
Primary or secondary view inside Toggle
Related Posts
aegis/related-posts
Posts 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:
Variation
Base block
What it is
Accordion List
core/list
Expand and collapse list items. Style is-style-accordion
Counter
core/paragraph
Number that counts up when it scrolls into view
Curved Text
core/paragraph
Text along a curved path
Grid
core/group
CSS grid container
Marquee
core/group
Horizontal ticker
Newsletter
core/search
Search form styled as an email signup (is-style-newsletter)
SVG
core/image
Inline 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:
Block
Styles
Archive title
Sub-heading
Buttons
Surface
Button
Ghost
Code
Surface, Light, Dark
Columns
Surface, Light, Dark
Column
Surface, Light, Dark
Comment author name
Heading
Details
Heading (summary)
Group
Surface, Light, Dark
List
Checklist, Check outline, Check circle, Square, List heading, Dash, None
List item
Surface
Navigation
Heading
Page list
None
Paragraph
Sub-heading, Notice, Heading
Post author name
Heading
Post terms
List, Sub-heading, Badges
Post title
Sub-heading
Query pagination
Badges
Read more
Button
Site title
Heading
Spacer
Angle, Curve, Round, Wave, Fade
Tag cloud
Badges
Quote
Surface
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:
Style
Behavior
Slide-in
Drawer from the right
Slide-in Left
Drawer from the left
Fullscreen
Full-viewport overlay
Scroll
Overlay 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.
Control
What it adds
Additional styles
Custom CSS on a block. Saved by a user without the unfiltered_html capability, only the CSS properties WordPress allows in post content are kept
Animation
Motion, with CSS and script loaded when used
Backdrop blur
Backdrop-filter blur
Box shadow
Shadow beyond the eight presets
Text shadow
Shadow on text
CSS filters
Filter effects
Transform
CSS transforms
Opacity
Opacity control
Responsive
Breakpoint layout, including visibility and positioning
Visibility
Server-side show and hide from a visibility attribute
Subheading
Sub-heading treatment, including gradient clip
Template tags
Replacements 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 layout
Responsive layout on Query
Query enhancements
Extra query parameters
Query no results
Custom empty state for Query
Image
Image inspector options such as aspect ratio, height, object-fit, and object-position
Inline color
Inline color
Inline SVG
Inline SVG rendering
Copy to clipboard
Copy control on code
Onclick
Click action and template-tag replacement. Kept only when the user who saves the content has the unfiltered_html capability
Placeholder
Placeholder 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.
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.
Navigation and search
Overlay menus: the four styles in the block-styles section.
Submenus support multi-column mega menus on core/navigation-submenu.
Headers can be sticky, transparent, or absolutely positioned.
Search has a CSS-only toggle, including a full-screen treatment, in the Utility Search Toggle pattern.
Dark mode
Dark mode is a class, not a separate theme.
is-style-dark on the body, or on a section, remaps the color tokens.
A visitor toggle stores the choice in localStorage.
prefers-color-scheme can follow the system unless the visitor has chosen.
All 60 style variations keep their own dark palette.
Per-section dark mode is the same class on a Group.
Color-scheme conditionals in the plugin admin are not a theme feature.
Accessibility and performance
Skip link auto-injected before the header (SkipLink); also shipped as the Skip to Content pattern (used by the Blank template, which has no header).
Visible :focus / :focus-visible styles in light and dark (global links, buttons, search, breadcrumbs, post meta).
Semantic landmarks in templates: header, nav, main, article, section, aside (sidebar), footer; Blank and default templates wrap content in <main id="main">.
Keyboard support on Slider, Toggle, Accordion List, and the search dialog (role="dialog", Escape, focus trap/return).
Stock patterns: labeled demo forms, unique field IDs, hero slider slide titles as <h2>, demo CTAs use real home_url destinations, slider autoplay off by default and disabled under prefers-reduced-motion.
neutral-400 token is #666666 for muted text contrast on the default body background.
RTL and a translation-ready aegis text domain (languages/aegis.pot).
Framework CSS and JavaScript load when the page uses the feature, not as a single front-end bundle.
CI: pa11y-ci WCAG2AA with threshold 0 (.pa11yci.json defaults; workflow writes .pa11yci.ci.json with resolved IDs for php -S). WPAudit skip-link check covers SkipLink.php / skip-to-content.php.
The theme ships an accessibility-ready foundation aimed at WCAG 2.2 AA. Full conformance still depends on editor content, plugins, and runtime testing.
Other theme behavior
Embeds.embed-content.php replaces the default oEmbed layout: featured image, title, date, excerpt, term, then site icon and name. It outputs Article schema (headline, url, dates, author, publisher, image).
Dynamic template parts.aegis_dynamic_template_part_slug can swap header, footer, or sidebar at render time when parts/{slug}.html exists. Nothing changes until that filter is used.
Maintenance and coming soon. Templates and matching patterns.
Lightbox. Enabled in theme.json for images. Extra lightbox UI (grouped navigation, zoom, thumbnails) is gated in the plugin.
Reading time. Template tag, 200 words per minute unless filtered.
Child themes. The framework looks at both the parent and child pattern and icon directories.
style.css rules worth knowing when writing about the front end:
Linked headings fade to Primary 500 on hover.
Gravatar captions are hidden.
Wide and full alignments inside post content stay in the column instead of breaking out with viewport units.
Payment icons use a 3:2 card layout in the front end and the Site Editor.
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:
Breadcrumbs use core/breadcrumbs, with matching styles for Rank Math, SEOPress, Yoast, and WooCommerce Store Breadcrumbs when those markup patterns are present.
Search toggle is CSS.
Navigation overlays and mega-menu submenus.
Lightbox follows light and dark. The expand control sits on the image. Captions stay on the figure.
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.
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.
The preview only changes the editor canvas. It does not change your site.
Your choice is saved per user. With no saved choice, the editor starts in the site’s default mode (aegis_default_mode filter).
The toggle is hidden when dark mode is turned off with the aegis_dark_mode filter.
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.
Group
Templates
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.
Open the Page tab in the right sidebar.
Under Template, click the current template name.
Select a different template from the list.
Update or publish the page.
Editing a Template
To modify the structure of a template:
Navigate to Appearance → Editor.
Click Templates in the left sidebar.
Select the template you want to edit.
Add, remove, or rearrange blocks.
Click Save.
Creating a Custom Template
Create a custom template from Templates → Add New Template.
In the Site Editor, go to Templates.
Click the + button to add a new template.
Choose what the template applies to (specific page, post type, or taxonomy).
Build the layout using blocks and patterns.
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:
Custom template assigned to a specific page or post.
Specific template matching the content type (for example, single.html for posts).
Archive template for listing pages.
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:
Shipping — Customer shipping address and method selection.
Payment — Payment method and billing details.
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).
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:
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
Use the Full Width template for portfolio or gallery pages that benefit from wider layouts.
Use the Blank template for marketing landing pages where you want complete control.
Use the Page (No Title) template when the page content includes its own heading design.
Duplicate an existing template as a starting point for custom layouts.
Next Steps
Template Parts — Learn about the header, footer, and sidebar parts used within templates.
Site Editor — Learn how to edit templates in the Site Editor.
Template Parts
Updated November 23, 2026
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
Part
Filename
Description
Header
parts/header.html
The site header containing logo, navigation, and utility elements.
Footer
parts/footer.html
The site footer containing copyright, links, and secondary navigation.
Sidebar
parts/sidebar.html
An optional sidebar for supplementary content and widgets.
Header
The default Aegis header includes:
Site Logo — Displayed at the leading edge of the header.
Site Title — The site name, linked to the homepage.
Navigation — The primary navigation menu.
Search — An optional search toggle.
Contact — A button with a mail icon that links to your site’s /contact/ page. It is hidden on phones. Create a page with the slug contact, or edit the button’s link.
Dark Mode Toggle — An optional button to switch between light and dark modes.
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:
Key
Default
CSS variable
position
relative
--wp--custom--header--position
top
0px
--wp--custom--header--top
zIndex
100
--wp--custom--header--z-index
background
var(--wp--preset--color--neutral-0)
--wp--custom--header--background
scrollPadding
0px
--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.
Navigate to Appearance → Editor.
Click Patterns in the left sidebar.
Select Template Parts.
Click Header to open it in the editor.
Make your changes and click Save.
Common Header Customizations
Task
Instructions
Change the logo
Click the Site Logo block and replace the image.
Edit navigation items
Click the Navigation block and use the toolbar to add or remove items.
Hide the search icon
Select the Search block and remove it.
Change the Contact link
Select the Contact button and edit its link.
Add a CTA button
Insert a Buttons block after the Navigation block.
Change header width
Select the outer Group block and adjust alignment (wide or full).
Footer
The default Aegis footer includes:
Widget columns — Organized in a multi-column layout for links and information.
Copyright text — Site title and current year.
Secondary navigation — Links to privacy policy, terms, and other pages.
Social icons — Links to social media profiles.
Editing the Footer
The footer template part in the Site Editor.
Navigate to Appearance → Editor.
Click Patterns in the left sidebar.
Select Template Parts.
Click Footer to open it in the editor.
Make your changes and click Save.
Common Footer Customizations
Task
Instructions
Update copyright text
Edit the Paragraph block containing the copyright notice.
Add social links
Insert a Social Icons block and configure your profiles.
Change column count
Adjust the Columns block layout (2, 3, or 4 columns).
Add a newsletter form
Insert a newsletter pattern from the Newsletter category.
Empty Footer Navigation
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.
Sidebar
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:
Search — A search form for site content.
Recent Posts — A list of the latest published posts.
Categories — Post category navigation.
Tags — A tag cloud or list.
Editing the Sidebar
Navigate to Appearance → Editor.
Click Patterns in the left sidebar.
Select Template Parts.
Click Sidebar to open it in the editor.
Make your changes and click Save.
Using the Sidebar in Templates
To add a sidebar to a template that does not currently have one:
Open the template in the Site Editor.
Wrap the main content area in a Columns block (for example, 2/3 + 1/3 layout).
In the narrower column, insert a Template Part block.
Select the Sidebar template part from the dropdown.
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.
In the Site Editor, go to Patterns → Template Parts.
Click the + button to add a new template part.
Choose an area designation (Header, Footer, or General).
Build the layout using blocks.
Save the template part.
Reference the new part in any template by inserting a Template Part block.
Template Part Areas
WordPress defines three template part areas:
Area
Purpose
Usage
Header
Top of the page
Site branding, navigation
Footer
Bottom of the page
Copyright, secondary links
General
Anywhere in the template
Sidebars, 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:
Open the target template in the Site Editor.
Click on the existing Template Part block (for example, the header).
In the block toolbar, click Replace.
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:
Navigate to Patterns → Template Parts in the Site Editor.
Select the modified template part.
Open the Options menu (three dots).
Click Clear customizations.
This removes all your changes and restores the version that shipped with Aegis.
Next Steps
Templates — See how template parts are used within templates.
Site Editor — Learn more about editing in the Site Editor.
Block Patterns — Explore patterns you can use within template parts.
Block Patterns
Updated November 23, 2026
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.
Click the Block Inserter (+) in the top toolbar of the editor.
Switch to the Patterns tab.
Browse the categories in the dropdown or search by keyword.
Click a pattern to insert it at the current cursor position.
From the Slash Command
Type / in an empty block to open the quick inserter.
Start typing a pattern name or keyword.
Select the pattern from the results.
From the Pattern Explorer
The pattern explorer shows larger previews.
In the Patterns tab of the block inserter, click Explore all patterns.
Browse the full-screen pattern explorer with previews.
Click a pattern to insert it.
Pattern Categories
Theme patterns live in 28patterns/ category folders:
Category
Description
Typical Use
About
About sections and pages
Company info, bios
Author
Author profile and bio layouts
Blog author pages
Blog
Blog listing and post layouts
Blog pages, post grids
Commerce
E-commerce product sections
Shop pages, product highlights
Contact
Contact forms and information
Contact pages, footer sections
CTA
Call-to-action sections
Conversion sections
Event
Event listings and details
Event pages, calendars
FAQ
Frequently asked questions
Support pages
Featured
Feature showcases and grids
Product features, services
Footer
Footer layouts
Site footers
Header
Header layouts
Site headers
Hero
Hero banners and landing sections
Page headers, landing pages
Hidden
404 page layouts, not shown in the inserter
404 template
Logos
Logo grids and client showcases
Trust signals, partnerships
Newsletter
Email signup sections
Lead generation
Notice
Alert and notification banners
Announcements, warnings
Pages
Full page layouts
Complete page designs
Portfolio
Portfolio and project showcases
Creative portfolios
Pricing
Pricing tables and comparisons
SaaS, service pricing
Product
Product detail sections
Product showcases
Sidebar
Sidebar / complementary layouts
Blog sidebars, template parts
Slider
Carousel and slider layouts
Image galleries, testimonials
Stats
Statistics and number highlights
Achievement sections
Team
Team member grids and profiles
About pages
Template
One layout per template file, not shown in the inserter
Template building
Testimonial
Reviews and testimonial sections
Social proof
Timeline
Chronological content layouts
Company history, roadmaps
Utility
Color palette, gradients, dark mode toggle, search toggle, skip link
Layout 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:
Change text — Click any text and edit directly.
Replace images — Click an image and use the toolbar to replace it.
Modify colors — Select a block and change its color settings in the sidebar.
Adjust spacing — Use the block spacing controls to change padding and margins.
Rearrange blocks — Drag blocks to reorder them within the pattern.
Remove blocks — Delete any block you do not need.
Add blocks — Insert additional blocks into the pattern structure.
Pattern Design Principles
All Aegis patterns are built following these principles:
Responsive — Every pattern adapts gracefully from mobile to desktop viewports.
Accessible — Patterns use semantic markup, proper heading hierarchy, and ARIA attributes where needed.
Theme-aware — Patterns use design tokens (CSS custom properties) from theme.json, so they automatically adapt to style variations.
Lightweight (theme patterns) — Theme-owned patterns use core blocks and Aegis custom blocks only, with no external dependencies. WooCommerce block patterns (plugin-owned) use wp:woocommerce/* blocks when WooCommerce is active.
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:
Header patterns stay available with the cart and account icons removed.
Other patterns built on WooCommerce blocks (shop, product, cart, checkout, and order layouts) are hidden.
The same applies to patterns that use a block from the Aegis Dash, such as the map in the contact patterns, when the plugin is not active.
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.
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.
Select the blocks you want to save as a pattern.
Click the Options menu (three dots) in the block toolbar.
Select Create pattern.
Name the pattern and optionally assign a category.
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 Type
Recommended Categories
Homepage
Hero, Featured, Testimonial, CTA, Logos, Stats
About Page
About, Team, Timeline, Stats
Services
Featured, Pricing, FAQ, CTA
Contact
Contact, Newsletter
Blog
Blog, Author
Portfolio
Portfolio, Slider
Shop
Commerce, Product, Pricing
Landing Page
Hero, Featured, Testimonial, CTA, Pricing
Next Steps
Pattern Reference — Complete list of all pattern categories with descriptions.
Style Variations — See how patterns adapt to different style variations.
Custom Blocks — Learn about the custom blocks used in patterns.
Templates — Use patterns to build custom templates.
Style Variations
Updated November 24, 2026
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.
Navigate to Appearance → Editor to open the Site Editor.
Click the Styles icon (half-filled circle) in the top toolbar.
Click Browse styles.
Scroll through the grid of available variations.
Click a variation to preview it on your site.
Click Save to apply the variation.
Available Variations
Aegis ships with 60 style variations organized alphabetically:
#
Variation
Primary Mood
1
Amber
Warm golden tones
2
Amethyst
Rich purple elegance
3
Arctic
Cool icy blues
4
Autumn
Warm fall palette
5
Blossom
Soft pink florals
6
Canary
Bright cheerful yellow
7
Charcoal
Deep dark grays
8
Copper
Warm metallic earth
9
Coral
Vibrant warm pink-orange
10
Crimson
Bold deep red
11
Desert
Sandy warm neutrals
12
Dusk
Evening twilight hues
13
Earth
Natural brown tones
14
Emerald
Rich green jewel
15
Flamingo
Playful bright pink
16
Forest
Deep natural greens
17
Fuchsia
Vivid magenta-pink
18
Gilded
Luxurious gold accents
19
Grayscale
Pure monochromatic
20
Grove
Fresh green nature
21
Indigo
Deep blue-violet
22
Ivory
Clean off-white elegance
23
Lagoon
Tropical blue-green
24
Lavender
Soft purple calm
25
Lime
Energetic yellow-green
26
Linen
Warm neutral fabric
27
Marigold
Bright orange-yellow
28
Midnight
Dark navy blue
29
Mist
Light airy gray
30
Moss
Muted olive green
31
Neon
Electric vivid colors
32
Neutral
Balanced gray palette
33
Obsidian
Pure dark black
34
Ocean
Deep sea blue
35
Orchid
Exotic purple-pink
36
Parchment
Aged paper warmth
37
Peach
Soft warm orange
38
Pewter
Cool silver-gray
39
Plum
Dark rich purple
40
Raspberry
Bold berry red-pink
41
Rose
Classic soft pink
42
Rustic
Weathered earth tones
43
Sage
Muted green calm
44
Sand
Warm desert beige
45
Sapphire
Brilliant deep blue
46
Sepia
Vintage warm brown
47
Sky
Light cheerful blue
48
Slate
Cool blue-gray
49
Steel
Industrial cool gray
50
Stone
Neutral warm gray
51
Sunflower
Bright warm yellow
52
Tangerine
Vibrant orange
53
Tea
Warm muted green
54
Teal
Blue-green balance
55
Terracotta
Warm clay earth
56
Vintage
Retro muted palette
57
Violet
Classic purple
58
Walnut
Rich dark brown
59
Wine
Deep burgundy red
60
Zinc
Cool 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:
Midnight, Obsidian, and Zinc use a dark default background (primary-950), light text (neutral-300), light headings (neutral-100), and lighter buttons and links.
Flamingo sets its own text, heading, button, and link-hover colors on the white background.
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:
With the variation active, click the Styles icon.
Navigate to Typography, Colors, or Layout.
Adjust any specific token or element style.
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.
Open the style browser in the Site Editor.
Click a variation — the canvas updates immediately.
Navigate through your site pages to see the effect on different layouts.
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):
Open the Styles panel in the Site Editor.
Click Browse styles.
Select the first style in the list (the base theme.json styles).
Click Save.
Alternatively, to reset all style customizations:
Open the Styles panel.
Click the Options menu (three dots).
Select Reset to defaults.
How Variations Work Technically
Style variations are stored as JSON files in the styles/ directory of the theme:
Global Styles allows you to set default styles for specific block types:
Style every instance of a block from Styles → Blocks.
In the Styles panel, scroll to the Blocks section.
Click Blocks or search for a specific block type.
Configure typography, colors, dimensions, and spacing for that block.
These settings become the default for all instances of that block type.
Example: Styling All Buttons
Navigate to Styles → Blocks → Button.
Set the background color, text color, border radius, and padding.
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:
Copying the relevant portions of your customized theme.json structure.
Using the WordPress REST API to retrieve the global styles object.
Resetting Styles
To clear all style customizations and return to the theme defaults:
Open the Styles panel.
Click the Options menu (three dots at the top).
Select Reset to defaults.
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:
Settings define what options are available (which fonts, which colors, which sizes).
Styles define the default values applied to elements and blocks.
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
Start with a style variation that is close to your desired design, then fine-tune individual settings.
Use the per-block section to maintain consistency across all instances of a block type.
Test on multiple templates to ensure your style changes look correct on posts, pages, and archives.
Save regularly — the Styles panel requires an explicit save action.
Next Steps
Style Variations — Choose a style variation as your starting point.
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.
Control
Options
Effect
Spin, 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)
Easing
Ease, Ease In, Ease Out, Ease In Out, Linear
Event
Enter (when the block comes into view), Exit, Infinite (repeats), Scroll (follows the scroll position)
Duration, Delay, Repeat
How 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.
Changes the order of a block inside a Flex or Grid parent without moving it in the editor
Width, Min Width, Max Width
A 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
Control
Options
Position
Relative, Absolute, Sticky, Fixed, Static
Inset
Top, right, bottom, and left offsets, or All sides at once, in px, %, em, rem, vw, or vh
Z-Index
The stacking order. Higher numbers sit on top.
Overflow
Hidden or Visible. Hidden clips anything that sticks out of the block.
Pointer Events
None (clicks pass through the block) or All
Warning
Fixed and Absolute blocks leave the normal flow and can cover other content on small screens. Preview the tablet and mobile views after using them.
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
Control
What it does
HTML anchor
An 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 CSS
CSS that applies to this block only. You do not need a selector. Add a property and value, for example color: red;.
HTML element
The tag the block outputs (for example div, section, or aside)
Allowed Blocks
Which 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.
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.
Dark mode in Aegis uses a class-based toggle mechanism:
Light mode (default): The site renders with the standard color palette defined in the active style variation. Midnight, Obsidian, and Zinc start from a dark background.
Dark mode: When the is-style-dark class is present on the <body> element, CSS custom properties are remapped to their dark equivalents.
This approach ensures that:
All design tokens automatically adapt to dark mode.
Block patterns and templates do not require separate dark versions.
Style variations maintain their character in both modes.
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.
Open the Site Editor (Appearance → Editor).
Edit the template that wraps your content.
Select the outermost Group block.
In the Advanced section of the block settings, add is-style-dark to the Additional CSS class(es) field.
Save the template.
Per-Page via Page Settings
To enable dark mode on individual pages:
Edit the page in the block editor.
Select the root Group block or add one wrapping all content.
Add is-style-dark to the Additional CSS class(es) field.
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.
Each button sets is-style-dark or is-style-light on the <body> element.
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.
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:
Token
Becomes 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-600
primary-400
success-600, warning-600, error-600, info-600
the -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:
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.
One click switches the editor canvas between light and dark. The canvas uses the same token remaps as the front end.
The preview only affects the editor. It does not change your site or any content.
Your choice is saved per user in the editor preferences. With no saved choice, the editor starts in the site’s default mode.
The toggle’s sidebar also has Light and Dark buttons as a fallback.
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:
Text contrast ratios remain above 4.5:1 for normal text on swapped surfaces.
Large text maintains at least 3:1 contrast.
Interactive elements retain visible :focus / :focus-visible indicators on dark backgrounds.
Color is never the sole indicator of meaning.
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:
Select a Group block or container section.
Add is-style-dark to the Additional CSS class(es) field.
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:
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:
Open Appearance → Editor → Styles.
Make color adjustments in the Styles panel.
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:
In dark mode, the color scale effectively inverts. Light shades become backgrounds and dark shades become foregrounds:
Usage
Light Mode Token
Dark Mode Token
Page background
neutral-0
neutral-950
Card background
neutral-50
neutral-900
Border
neutral-200
neutral-700
Body text
neutral-700
neutral-200
Heading text
neutral-800
neutral-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:
Body text on background: minimum 4.5:1 contrast ratio (neutral-700 / neutral-600 on the default surface).
Large text on background: minimum 3:1 contrast ratio.
Interactive elements and focus outlines: minimum 3:1 against adjacent colors.
neutral-400 (#666666) is the lightest gray intended for readable muted text on the default body background; do not use lighter neutrals (neutral-300 and below) for essential copy.
Custom cover images, gradients, and editor-chosen colors still need a contrast check (WebAIM Contrast Checker or similar). See Accessibility.
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
Fonts are self-hosted in the theme (no external requests to Google Fonts).
Each family is one variable woff2 file.
Font faces are declared in theme.json (fontFace).
Every face uses font-display: swap, so text stays visible while fonts load.
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.
Slug
Min
Max
Value
Default use
96
56px
96px
clamp(56px,calc(39.43px + 4.420vw),96px)
Display
88
52px
88px
clamp(52px,calc(37.08px + 3.978vw),88px)
Display
80
48px
80px
clamp(48px,calc(34.74px + 3.536vw),80px)
Display
72
44px
72px
clamp(44px,calc(32.40px + 3.094vw),72px)
Display
64
40px
64px
clamp(40px,calc(30.06px + 2.652vw),64px)
Display
60
38px
60px
clamp(38px,calc(28.88px + 2.431vw),60px)
56
37px
56px
clamp(37px,calc(29.13px + 2.099vw),56px)
52
36px
52px
clamp(36px,calc(29.37px + 1.768vw),52px)
48
34px
48px
clamp(34px,calc(28.20px + 1.547vw),48px)
44
32px
44px
clamp(32px,calc(27.03px + 1.326vw),44px)
H1
42
31px
42px
clamp(31px,calc(26.44px + 1.215vw),42px)
40
30px
40px
clamp(30px,calc(25.86px + 1.105vw),40px)
36
28px
36px
clamp(28px,calc(24.69px + 0.884vw),36px)
H2
32
28px
32px
clamp(28px,3.2vw,32px)
H3
28
24px
28px
clamp(24px,2.8vw,28px)
H4
24
22px
24px
clamp(22px,2.4vw,24px)
H5
22
20px
22px
clamp(20px,2.2vw,22px)
20
19px
20px
clamp(19px,2vw,20px)
H6
18
17px
18px
clamp(17px,1.8vw,18px)
16
15px
16px
clamp(15px,1.6vw,16px)
Body text (root)
15
14px
15px
clamp(14px,calc(13.59px + 0.110vw),15px)
14
13px
14px
clamp(13px,1.4vw,14px)
Buttons, code, captions
13
12px
13px
clamp(12px,calc(11.59px + 0.110vw),13px)
12
11px
12px
clamp(11px,1.2vw,12px)
11
10px
11px
clamp(10px,calc(9.59px + 0.110vw),11px)
10
9px
10px
clamp(9px,1vw,10px)
8
7px
8px
clamp(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:
Minimum size on small viewports (mobile).
Smooth scaling as the viewport grows.
Maximum size on large viewports (desktop).
Font Weights
Font weights are custom tokens (settings.custom.fontWeight), output as --wp--custom--font-weight--{name}:
Token
Weight
thin
100
extralight
200
light
300
normal
400
medium
500
semibold
600
bold
700
extrabold
800
black
900
Because all three fonts are variable, every weight in a font’s range renders from the same file.
Default Element Styling
Body Text
Font family: Lexend
Size: 16
Weight: normal (400)
Line height: 1.6
Color: neutral-700 on a neutral-0 background. Dark mode remaps both tokens.
Headings
Font family: Lexend Deca
Weight: semibold (600)
Line height: 1.4 on the heading element. Each level then sets its own line height from the size scale.
Color: neutral-800. Dark mode remaps the token.
Level
Size
Line height
H1
44
52
H2
36
44
H3
32
40
H4
28
36
H5
24
32
H6
20
28
Code
Font family: JetBrains
Code block (core/code): size 14, weight medium (500), neutral-100 background
Inline code (:not(pre) > code): 1em (matches surrounding text); light neutral-100 surface; linked hover uses neutral-200 with dark text for contrast
Links
Color: inherits the surrounding text color
Text decoration: underline
Hover and focus: primary-500; focus also draws a 2px primary-500 outline with a 2px offset
Buttons and Captions
Buttons: size 14, weight semibold, line height 20
Captions: size 14 (13–14px), left-aligned. Before 1.0.1 captions used 12, which rendered at 11px on most screens.
Using Typography in the Editor
Setting Font Size
Pick a size from the Aegis type scale.
Select a text block (Paragraph, Heading, or similar).
In the right sidebar, find the Typography section.
Choose a size from the preset dropdown or enter a custom value.
Setting Font Family
Choose from the fonts bundled with the theme.
Select a text block.
In the Typography section, click the font family selector.
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
Context
Recommended Slug
Between hero and first section
xll to xxl
Between content sections
xl to xll
Between related sub-sections
lg to xl
Between heading and content
xs to sm
Component Internal Spacing
Context
Recommended Slug
Card padding
sm to md
Input field padding
2xs to xs
List item gap
xxs to 2xs
Buttons use fixed padding from styles.elements.button (10px by 16px), not a spacing preset.
Inline Spacing
Context
Recommended Slug
Icon to text gap
xxs to 2xs
Between buttons
xs
Grid column gap
sm to md
Navigation item gap
xs to sm
Global Spacing Settings
To configure site-wide spacing defaults:
Open the Site Editor (Appearance → Editor).
Click the Styles icon.
Navigate to Layout.
Adjust Padding (space between content and viewport edges).
Adjust Block spacing (default gap between blocks).
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.
Use the fluid steps for section padding and large gaps.
Use the fixed steps for tight inline spacing.
The editor allows different padding values per side, enabling asymmetric spacing.
Next Steps
Layout — Learn about content width and layout settings.
Typography — See how spacing relates to the type scale.
Global Styles — Configure spacing through Global Styles.
Shadows
Updated November 23, 2026
Shadow Scale
The scale runs from None through XX Small to XX Large, with increasing offset and blur:
Slug
Name
Description
none
None
No shadow. Used to remove inherited shadows.
xxs
XX Small
Barely visible. Subtle lift for small elements.
xs
X Small
Light shadow. Cards and interactive elements at rest.
sm
Small
Small shadow. Buttons, inputs, and small cards.
md
Medium
Medium shadow. Standard card elevation.
lg
Large
Large shadow. Elevated panels and dropdowns.
xl
X Large
Extra large. Modal dialogs and popovers.
xxl
XX Large
Maximum 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.
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:
Base level (no shadow) — Static content, backgrounds.
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:
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
Cards — Define card boundaries when shadows are not used.
Form inputs — Indicate interactive field boundaries.
Tables — Separate rows and columns.
Dividers — Create horizontal or vertical separation.
Emphasis — Left or top accent borders for highlighted content.
When to Use Shadows Instead
When you want depth rather than flat separation.
For elevated elements (dropdowns, modals, popovers).
When a lighter, more modern aesthetic is desired.
Combining Borders and Shadows
Borders and shadows can work together. A common pattern is a light border combined with a subtle shadow:
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.
Alignment
Behavior
Max Width
None (default)
Contained within content width
720px
Wide
Breaks out to wide width
1200px
Full width
Spans the entire viewport
100vw
Left
Floats left within content width
—
Right
Floats right within content width
—
Center
Centered within content width
720px
Configuring Layout in the Editor
Global Layout Settings
Open the Site Editor (Appearance → Editor).
Click the Styles icon.
Navigate to Layout.
Adjust the Content width and Wide width values.
Set root-level Padding (the space between content and viewport edges).
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.
Select the container block.
In the block settings sidebar, find Layout.
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.
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.
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:
On narrow viewports, content blocks fill the available width minus the lg step on each side.
On viewports up to about 1300px, standard blocks are constrained to 720px but wide blocks fill the viewport minus that padding.
On wider viewports, wide-aligned blocks stop growing at 1200px.
Full-width blocks always span the entire viewport regardless of size.
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:
Comfortable reading (approximately 65–75 characters per line at body size).
Standard blog posts and article content.
Form layouts and standard page content.
When to Use Wide Alignment
Wide alignment (1200px) works well for:
Image galleries and portfolios.
Multi-column feature sections.
Tables with many columns.
Full-width pattern sections that still need some margin.
When to Use Full Width
Full-width alignment is appropriate for:
Hero sections and banners.
Map embeds.
Footer patterns.
Sections with background images or colors that should bleed to the edges.
Next Steps
Spacing — Learn about the spacing scale used for padding and gaps.
Templates — See how layout settings apply to different templates.
Global Styles — Adjust layout dimensions through the Styles panel.
Css Variables Reference — Full list of layout-related custom properties.
Custom Blocks
Updated November 22, 2026
Where the blocks live
Since Aegis Dash 1.1.0, all Aegis blocks come from Aegis Dash:
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
Fallback copy. Aegis theme 1.1.0 still contains the Countdown, Slider, Slide, Toggle, Toggle Content and Related Posts blocks. It registers one only when Aegis Dash is not already providing it. A later theme release removes these copies, so install Aegis Dash now.
Install prompt. On Appearance → Themes the theme offers to install and activate Aegis Dash. See Installation.
Update hold. A theme release that depends on a newer Aegis Dash is not offered until Aegis Dash is installed, active and new enough. See Updating.
Styling. Front-end styling for the blocks comes from the plugin; the theme provides the colour, spacing and typography tokens they use.
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.
The custom player, player styles and facades, the video type picker in the editor (YouTube / Vimeo / Audio / Bunny), and the schema markup extra
Aegis Dash
Lists the Video feature toggles at Aegis → Blocks → Video and hosts the BunnyCDN card at Aegis → Connectors
Aegis Pro
BunnyCDN, 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
Insert the standard Video block (core/video) from the block inserter.
Upload or embed a video as with any block theme.
Configure Pro features in the block sidebar when Pro is active and the matching extra is on.
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.
theme.json styling — Default colors, typography, spacing, and border settings for each block.
Block styles — Additional style variations registered for specific blocks.
Block supports — Enabling additional WordPress block features (like border, shadow, and spacing) where core has not enabled them by default.
Custom CSS — Targeted styles for improved design and responsiveness.
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
Block
Enhancements
Paragraph
Ensures the wp-block-paragraph class, applies custom margin and padding, and fixes malformed URLs
Heading
Custom spacing, a unique id for anchor links, and better heading text on search results pages
List
Flexbox layout controls, custom spacing, and a URL formatting fix. Block styles add checklists, dashes, and more (see below)
Code
Applies the block’s margin settings to the <pre> element. Copy-to-clipboard control
Details
Custom expand and collapse icons, custom padding, and a script for smooth open and close animation
Shortcode
Runs shortcodes in the block and strips the stray <p> tags WordPress adds
Media Blocks
Block
Enhancements
Image
Shadow 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)
Icon
WordPress Icon library (core/{name}) plus Aegis collections (social/{name}, Pro sets). Custom SVG, gradients, gallery, and currentColor for dark mode — see SVG Icons
Cover
Fallback placeholder image, custom padding, and z-index control through a CSS custom property
Audio
Styled 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
Video
Enables 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
Block
Enhancements
Group
minHeight, custom spacing, and accessibility handling when the HTML tag is <main>
Columns
Custom margin, an is-stacked-on-mobile or is-not-stacked-on-mobile class, and the column count as a data attribute
Buttons
Custom margin and padding on the button group wrapper
Button
Custom icons, responsive controls, CSS transforms, button text repair, and URL fixes
Spacer
Merges margin settings and drops the fixed width when a responsive width is set
Template Part
Applies 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
Navigation Blocks
Block
Enhancements
Navigation
Overlay menu styles, CSS filters, dynamic submenu border CSS from theme.json, and accessibility fixes in the markup
Navigation Submenu
Converts color and spacing settings into CSS custom properties on the submenu list. Supports multi-column mega menus
Page List
Applies the block gap as a CSS custom property
Search
Input and button styling, shadow presets, custom box shadows, and the CSS search toggle
Social Links
Replaces inline hex colors with the matching palette variables, so icons follow style variations and dark mode
Social Link
Renders icons from the Aegis social icon set
Table of Contents
Rebuilds the list from the page title and in-content headings, applies block gap, and detects sidebar placement
Post and Query Blocks
Block
Enhancements
Post Title
Uses the posts page title on the blog index and sets a heading id from the anchor or text
Post Content
Custom spacing, an optional content limit, and the aegis_before_content / aegis_after_content hooks
Post Excerpt
Visibility on singular pages, Read More link handling, length limits, and custom styling. Adds excerpt support to pages
Post Featured Image
Box shadows, CSS transforms, and CSS filters for normal and hover states
Post Date
Applies custom margin to the wrapper
Post Terms
Can rebuild the list to show all terms of a taxonomy, and styles terms as badges
Post Author
Custom border and spacing; the name wrapper becomes a <span>
Post Comments Form
Configurable title heading tag (aegis_comments_form_title_tag) and the context core/comments needs
Post Template
Grid or flex layout and spacing for each Query Loop item
Query
Responsive columns, gaps, featured-first, equal-height, no-results — gated at Aegis → Blocks → Query Loop. See Aegis Dash Query Loop.
Query Pagination
Merges margin, padding, and border radius into the pagination <nav>
Query Title
Renders the posts page title on the blog index (and a placeholder in the editor) when WordPress outputs none
Calendar
Moves color classes from the <table> to the wrapper so padding and margins display
Tag Cloud
Enforces 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.
Block
Styles
Archive Title
Sub-heading
Buttons
Surface
Button
Ghost
Code
Surface, Light, Dark
Columns
Surface, Light, Dark
Column
Surface, Light, Dark
Comment Author Name
Heading
Details
Heading (summary)
Group
Surface, Light, Dark
List
Checklist, Check outline, Check circle, Square, List heading, Dash, None
List Item
Surface
Navigation
Heading
Page List
None
Paragraph
Sub-heading, Notice, Heading
Post Author Name
Heading
Post Terms
List, Sub-heading, Badges
Post Title
Sub-heading
Query Pagination
Badges
Read More
Button
Site Title
Heading
Spacer
Angle, Curve, Round, Wave, Fade
Tag Cloud
Badges
Quote
Surface
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:
All blocks use the design system spacing tokens for margin and padding.
Colors, typography, and shadows inherit from Global Styles.
Blocks automatically adapt to style variations and dark mode.
Per-Block Global Styles
You can override the default styling of any block type:
Open the Site Editor (Appearance → Editor).
Click the Styles icon.
Navigate to Blocks.
Search for or select a specific block type.
Adjust colors, typography, dimensions, and border settings.
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:
Columns collapse to a single column on narrow viewports unless stacking is turned off (is-not-stacked-on-mobile).
Navigation switches to its overlay menu on small screens, using one of the Aegis overlay styles (Slide-in, Slide-in Left, Fullscreen, Scroll).
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.
Concern
Handled by
Per-viewport styles on standard supports
Core responsive style states
Show/hide by viewport (aegis-hide-mobile, and related)
Aegis visibility
Display, order, and width per device
Aegis Display panel
Landscape / tablet editor breakpoints
Aegis responsive breakpoint UI
Query column counts per breakpoint
Aegis 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.
Breadcrumbs
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:
Focus indicators remain visible on interactive blocks (:focus / :focus-visible, including breadcrumbs and post meta links).
ARIA attributes are preserved and enhanced where appropriate.
Default color tokens target WCAG 2.2 AA contrast; custom colors still need verification.
Keyboard navigation works across enhancements.
Screen reader announcements are not altered.
See Accessibility for landmarks, skip links, and content-author responsibilities.
Next Steps
Custom Blocks — Learn about blocks built specifically for Aegis.
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
Variation
Base Block
Description
Accordion List
core/list
An expandable list where items collapse and expand.
Counter
core/paragraph
An animated number counter that counts up on scroll.
Curved Text
core/paragraph
Text rendered along a curved SVG path.
Grid
core/group
A CSS Grid container with configurable columns.
Marquee
core/group
Continuously scrolling horizontal content.
Newsletter
core/search
Search form styled as an email signup (is-style-newsletter).
SVG
core/image
Inline 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
Click any list item to expand its content.
Smooth animated open/close transitions.
Optional exclusive mode (only one item open at a time).
Full styling control via List block settings.
Accessible ARIA expanded/collapsed states.
Usage
Insert the Accordion List block from the inserter.
Add list items with your heading text.
Each item expands to show content below it.
Configure behavior in block settings (exclusive mode, initial state).
core/search with classNameis-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
Strips search action / method so submit does not run a site search.
Signup fields (a submit button, or no-button with an email-like saved placeholder) are required. Decorative no-button skins (name, phone) are not.
Email validation (type="email"), success message, and custom placeholder — each gated by a Blocks extra. Success and aegis-newsletter-submit run only on signup fields.
Dispatches aegis-newsletter-submit with the email so a mailing-list plugin or snippet can subscribe the visitor.
Search icon is omitted on the frontend while Newsletter is on.
Usage
Enable Newsletter extras at Aegis → Blocks → Newsletter.
Insert the Newsletter block (Search variation) or apply the Newsletter style to Search.
Set button text (default Subscribe) and, with Custom Placeholder on, the email placeholder.
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
Footer or sidebar email capture
Blog page signup (theme Blog pattern)
Store newsletter CTA with a discount line
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.
Extra
Inspector / render
Off fallback
svg_markup
Implies the variation (paste markup stays available on saved blocks)
Variation hidden from the inserter when no SVG extra is on
svg_mask
Preview mask (CSS mask / currentColor)
Inline <svg> instead of a mask
svg_onclick
Image onclick kept on the inlined SVG or mask span
onclick not copied after the img is removed
svg_inline
Rich-text Inline SVG format in paragraphs
Format hidden; CSS-masked has-inline-svg images stay as images
svg_inline_file
Inline .svg files on Image, Button, Site Logo, Featured Image
img 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
Paste SVG markup on the Image block (administrators only; capability is checked with manage_options, not an empty roles array). The inspector is svg-editor.js. There is no Optimize SVG / SVGOMG control.
An empty SVG variation shows the Aegis image placeholder and a hint to paste markup in SVG Settings. That glyph is preview-only (not saved in svgString). Do not store an empty data:image/svg+xml URL. Placeholder CSS loads on any template that outputs is-placeholder.
SVG rendered inline (not as a raster) unless Mask Mode is on.
Independent width and height (not square like core/icon). Aegis stores these as style.width.all / style.height.all; the variation reads those when inlining. Per-breakpoint Image size vars apply to the figure after the SVG is inlined.
Color inheritance from parent text color when the SVG uses currentColor or Mask Mode.
Skipped by Lightbox.
Usage
Enable at least one extra at Aegis → Blocks → SVG (Paste Markup is enough).
Insert the SVG variation (Image block).
Paste SVG markup in SVG Settings.
Adjust width and height in block settings.
Optionally enable Mask Mode so the glyph follows text color.
Inserting Variations
Block variations appear in the block inserter alongside regular blocks:
Open the block inserter (+).
Search for the variation name (for example, “Counter” or “Marquee”).
Click to insert.
Some variations also appear under their parent block in the inserter hierarchy.
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.
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.
Shop templates use the WooCommerce Store Breadcrumbs block (woocommerce/breadcrumbs). Aegis styles them to match WordPress core/breadcrumbs:
Shared woocommerce-breadcrumbs.css stylesheet (enqueued for .woocommerce-breadcrumb / .wc-block-breadcrumbs / .wp-block-woocommerce-breadcrumbs).
Classic PHP breadcrumbs (woocommerce_breadcrumb_defaults) and Store Breadcrumbs (render_block_woocommerce/breadcrumbs) wrap the delimiter in .aegis-breadcrumb-separator with aria-hidden="true".
Core theme.json / CSS tokens that cascade through Woo’s .wp-block-breadcrumbs wrapper.
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:
The Aegis Dash (registers the template-page-wishlist pattern when both WooCommerce and TI Wishlist are active)
The wishlist template is hidden from the template picker when TI Wishlist or WooCommerce is inactive.
Setup
Install and activate TI WooCommerce Wishlist.
Create a page titled Wishlist (or your preferred title).
Assign the Wishlist template to that page (Page → Template → Wishlist).
Publish the page.
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
Shortcode
Purpose
[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
Confirm TI WooCommerce Wishlist is installed and activated.
Verify the page uses the Wishlist template (not the default Page template).
Ensure the Shortcode block contains [ti_wishlistsview] exactly.
Clear page and object caches after installing the plugin.
Add to wishlist button missing on product pages
Check TI WooCommerce Wishlist → Settings for button placement and visibility options.
Confirm the single product template still includes product action blocks.
WooCommerce Block Patterns
Aegis includes product-focused patterns in the Commerce and Product categories:
Pattern Type
Description
Product grids
Showcase featured products in various layouts.
Product hero
Large featured product with CTA.
Sale banners
Promotional banners for discounts.
Category navigation
Visual category browsing grids.
Trust signals
Shipping info, return policy, guarantee badges.
Cart cross-sell
Recommended products for cart page.
WooCommerce Styling
All WooCommerce elements are styled to match the active style variation:
Buttons — Add-to-cart and checkout buttons use the primary color.
Forms — Input fields, selects, and labels use theme typography and spacing.
Notifications — Success, error, and info messages use the status color tokens.
Badges — Sale badges, out-of-stock indicators follow the design system.
Tables — Cart and order tables use the theme table styling.
Price Display
Prices are styled with:
Regular price in standard body text.
Sale price emphasized with the Error (red) color token.
Original price shown with strikethrough.
WooCommerce and Dark Mode
WooCommerce templates and elements fully support dark mode:
Product cards adapt backgrounds and borders.
Form inputs switch to dark-appropriate styling.
Notification colors adjust for dark backgrounds.
Images maintain their appearance while surrounding UI adapts.
WooCommerce pages use the same conditional asset loading as the rest of Aegis:
Shop/cart/checkout CSS (woocommerce.css) loads when the WooCommerce integration is on and the page has woocommerce / wc-block / wp-block-woocommerce markup.
Breadcrumb CSS loads when the page has woocommerce-breadcrumb / wc-block-breadcrumbs / wp-block-woocommerce-breadcrumbs markup.
Multi-step checkout CSS/JS load on the multi-step template (or aegis-checkout-multi-step markup), not on every checkout page.
Product images use lazy loading.
The facade pattern applies to product videos.
See Performance for the full performance strategy.
Customization Tips
Customizing the Cart Page
Edit the Cart template in the Site Editor.
Add cross-sell patterns above or below the cart block.
Include trust signal patterns (shipping info, guarantees).
Customizing the Checkout Page
Edit the Checkout or Multi-Step Checkout template.
Add a progress bar if not already present.
Include trust badges near the payment form.
Adding a Mini Cart
Include the WooCommerce Mini Cart block in your header template part:
Edit the Header template part.
Insert the Mini Cart block.
Position it near the navigation.
Save.
Troubleshooting
WooCommerce Templates Not Appearing
Ensure WooCommerce is activated. WooCommerce templates (archive-product, single-product, product-search-results, search-product, page-cart, page-checkout, page-checkout-multi-step, order-confirmation, page-my-account, and product taxonomies) are hidden from the Site Editor template picker when WooCommerce is inactive.
Clear any page caches.
Check that WooCommerce block templates are enabled (not legacy PHP templates).
Checkout Not Working
Verify that WooCommerce pages (Cart, Checkout, My Account) are assigned in WooCommerce → Settings → Advanced.
Ensure the correct template is assigned to each page.
Next Steps
Templates — See all available templates including WooCommerce.
Performance — Performance optimizations for WooCommerce.
Block Patterns — Browse the Commerce and Product pattern categories.
Plugin Integrations (Framework Styling)
Updated November 22, 2026
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
Plugin
Integration styling
WooCommerce
Shop, 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 Forms
Form 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 Booking
Calendar 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 Forms
Form 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 Forms
Form 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.
LifterLMS
Course, 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.
LearnDash
Course, 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 LMS
Course, 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 Downloads
Download, 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.
AffiliateWP
Affiliate 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 Plus
Multi-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 Box
Field 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.
bbPress
Forum 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 Block
Radius/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 Pro
Radius/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.
BunnyCDN
Stream 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.
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
The Aegis Dash stores integration toggle state.
The framework ServiceProvider checks toggles via Settings\Repository.
Integration CSS loads inline only when both the third-party plugin and integration toggle are active.
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.
Wishlist FSE template (theme) + wishlist block pattern (Aegis Dash, gated on WC + TI). No framework CSS. See WooCommerce Integration.
WooCommerce block patterns
Registered by Aegis Dash when WooCommerce is active — not in theme patterns/. See Aegis Dash Patterns.
FluentCRM / WP Fusion
Aegis → 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 Fields
Aegis → Integrations → Developer. Field visibility, Query Loop pickers, featured-image sources, and Pro video Dynamic Source. No framework CSS.
WCAG 2.2 Level AA — Web Content Accessibility Guidelines (includes 2.1 AA criteria plus focus appearance / focus not obscured considerations).
Section 508 — U.S. federal accessibility requirements.
WordPress Accessibility Coding Standards — Theme-specific guidelines from the WordPress project.
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:
Element
Usage
<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:
Tab order follows a logical document flow.
Focus indicators are visible on all interactive elements (links, buttons, form fields).
Skip links allow keyboard users to bypass the header and jump to main content.
Dropdown menus are navigable with arrow keys.
Search dialog (theme header) and aegis/modal (Aegis Dash) trap focus and return it on close. In the search dialog the Close button is reachable with Tab, and closing returns focus to the button that opened it.
Sliders support keyboard arrow key navigation.
Toggles (content switcher) respond to click (including the switch track) and Left/Right arrows on the tablist. Pro fade/slide/flip/scale honors prefers-reduced-motion: reduce (instant swap). Accordion List responds to Enter and Space on each item.
Focus Styles
Aegis provides clearly visible focus indicators:
Visible focus styles for keyboard users.
High-contrast outline around focused elements.
Focus styles adapt to both light and dark mode.
Focus indicators are never hidden or removed.
Custom focus styles on buttons, links, and form controls for enhanced visibility.
Text fields, email and other inputs, selects, and textareas show a 2px focus ring, matching buttons and search. Checkboxes and radios keep their own focus style.
Color and Contrast
The color system ensures sufficient contrast across all contexts:
Requirement
Standard
Aegis Implementation
Normal text
4.5:1 minimum
Default body/neutral-600+ (and AA-safe neutral-400) tokens on the default surface
Large text (18px+ bold, 24px+ regular)
3:1 minimum
Default heading tokens meet or exceed 3:1
Interactive components
3:1 minimum
Default buttons, links, and inputs target 3:1
Focus indicators
3:1 minimum
Focus 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:
Error messages include icons and text labels, not just red color.
Success states include checkmarks alongside green color.
Links are underlined (or otherwise distinguishable) in addition to color difference.
Form validation uses icons and text messages with color.
ARIA Attributes
Aegis uses ARIA attributes to enhance screen reader experiences:
Pattern
ARIA Implementation
Navigation
aria-label identifying the nav purpose; header and footer menus have unique names (“Main menu”, the footer column headings, or “Footer menu N”)
A skip-to-content link is the first focusable element on every page:
The skip link appears on the first Tab press.
Hidden visually by default (.screen-reader-text).
Becomes visible when focused via keyboard.
Links directly to the <main> content area.
Allows keyboard users to bypass repetitive navigation.
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:
Default page/post templates output one document <h1> (the title). The Page No Title and Blank templates omit an automatic title — authors must supply exactly one <h1> in content.
Section and slider titles in patterns use <h2> (or lower) so they do not compete with the page title.
Prefer sequential order (H1 → H2 → H3) without skipping levels; use font size controls for visual sizing.
Images and Media
Images
Block patterns include placeholder alt text prompts.
Decorative images use alt="" to be ignored by screen readers.
The Image block always exposes the alt text field.
Videos
The Video block supports captions and transcripts.
Autoplay is disabled by default (videos do not play without user interaction).
Video controls are keyboard accessible.
Animations
All animations respect the prefers-reduced-motion media query.
When reduced motion is preferred, animations are replaced with instant transitions.
Marquee blocks stop scrolling on the frontend when prefers-reduced-motion: reduce is active. Pause on hover is a separate Blocks extra.
Countdown animations switch to static displays.
Forms
Stock Aegis demo forms use accessible names:
Theme patterns (contact, funnel squeeze, store footer newsletter): labels via for/id (visible or .screen-reader-text); unique field IDs per pattern (e.g. contact-page-email, store-footer-email).
Plugin modal patterns (aegis/modal-contact, aegis/modal-newsletter): same label/id practice; registered only with the Modal block.
Placeholder text is supplemental and does not replace a label.
Plugin form builders (WPForms, Gravity Forms, etc.) remain responsible for production form handling, validation, and their own ARIA.
Dark Mode Accessibility
Dark mode maintains all accessibility standards:
Contrast ratios remain at or above WCAG AA thresholds.
Focus indicators remain visible on dark backgrounds.
Status colors (success, warning, error) adjust to maintain contrast.
Aegis uses automated accessibility testing during development:
Tool
Purpose
pa11y-ci
Automated WCAG2AA testing in CI (.pa11yci.json, threshold 0) against home, ?p=1, search, ?page_id=2, and a missing post (404)
WPAudit AccessibilityAnalyzer
Static PHP/HTML checks, including skip-link detection in SkipLink.php and skip-to-content.php
Axe DevTools
Browser-based accessibility auditing
WordPress Accessibility Checker
Plugin-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:
Always add alt text to images that convey meaning; keep alt="" only when decorative.
Use headings sequentially — one document <h1>; do not skip levels for visual effect. On Page No Title / Blank, supply the <h1> in content.
Write descriptive link text — avoid “click here” or bare # destinations.
Provide captions for videos and audio content.
Use sufficient color contrast when choosing custom colors (neutral-600+ for small text on light surfaces).
Test with keyboard — Tab from load through skip link → main → footer; open/close search (Escape, focus return).
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.
Dark Mode — Ensuring dark mode meets contrast requirements.
Color Palette — Understanding color contrast in the design system.
Performance — Performance and accessibility intersect.
Performance
Updated November 24, 2026
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:
Default state: No theme CSS, no theme JS, no web fonts loaded.
Block detection: During rendering, Aegis detects which blocks are present on the page.
Conditional loading: Only the styles and scripts required by those blocks are enqueued.
Result: Pages that use only core blocks may load with zero theme-specific assets.
What This Means in Practice
Page Content
Assets Loaded
Simple page with only paragraphs and images
Zero theme CSS/JS (core styles only)
Page with a Slider block
Slider CSS + Slider JS only
Page with Countdown + Toggle
Countdown CSS/JS + Toggle CSS/JS
WooCommerce product page
WooCommerce integration styles only
Conditional Asset Loading
How It Works
The asset loading system operates in three phases:
Registration — All available assets are registered with WordPress but not enqueued.
Detection — Block parsing identifies which blocks and variations are present in the content.
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:
Responsive images — srcset and sizes attributes for proper resolution selection.
Lazy loading — Images below the fold use loading="lazy".
Aspect ratio — Explicit width and height attributes prevent layout shift.
WebP/AVIF — Works with WordPress image format conversion.
Video Facades
With the Aegis Video add-on active, the Video block uses a facade pattern:
A lightweight thumbnail image is displayed initially.
The video player (iframe or native) loads only when the user clicks play.
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.
Item
What Aegis does
Cache
Patterns
Reads 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)
Icons
Lists each icon folder’s SVG file names once (about 5,700 files)
aegis_icon_files option (not autoloaded)
How the caches stay current:
A folder is listed again when its modified time changes. Adding, removing, or renaming a pattern or icon does that.
The editor, the REST API, and WP-CLI re-read a pattern’s header when its file changes. Front-end requests use the cached headers. Pattern content is always read from the file.
If a template asks for a pattern slug that is not registered, that request re-checks every pattern file, so a renamed slug works on the front end right away.
The pattern cache starts fresh when the active theme or its version changes, so a theme update never serves old pattern headers.
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 Type
Loading Strategy
Theme CSS
Conditional, only per-block styles
Theme JS
Deferred, conditional per-block
Fonts
Preloaded for above-the-fold content
Images
Lazy loaded below the fold
Videos
Facade until interaction
Analytics
Async/defer, non-blocking
Measuring Performance
Core Web Vitals
Aegis is optimized for Google Core Web Vitals:
Metric
Target
How Aegis Helps
LCP (Largest Contentful Paint)
< 2.5s
Minimal CSS, font preloading, no JS blocking
FID (First Input Delay)
< 100ms
Deferred JS, minimal main-thread work
CLS (Cumulative Layout Shift)
< 0.1
Explicit image dimensions, font-display swap
INP (Interaction to Next Paint)
< 200ms
Lightweight event handlers, no heavy frameworks
Testing Tools
Tool
Purpose
WPAudit
WordPress-specific performance audit
Lighthouse
General web performance scoring
WebPageTest
Detailed waterfall analysis
PageSpeed Insights
Field 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:
Page caching — Full page cache safe (no user-specific content in templates).
Object caching — Compatible with Redis and Memcached.
CDN — All static assets use cache-friendly URLs.
Browser caching — Assets include proper cache headers.
Bundle Size
The theme produces minimal asset bundles:
Asset
Typical Size
Per-block CSS
1–5 KB (gzipped)
Per-block JS
2–10 KB (gzipped)
Font file (variable)
30–60 KB (per family)
Total typical page
Under 50 KB theme assets
Developer Performance Tips
When building custom pages or templates:
Prefer core blocks — They have zero theme asset cost.
Minimize custom block usage — Each custom block adds its CSS/JS bundle.
Use patterns — Patterns are just block markup, not additional assets.
Avoid global stylesheets — Do not add blanket CSS that loads everywhere.
Test with Lighthouse — Verify performance after significant changes.
Next Steps
Aegis Dash Performance — Free site-wide toggles (oEmbed, dashicons, heartbeat, head/API cleanup, embed facades) and Pro emoji / Query Loop Performance. With Pro active, the theme defers emoji stripping to that toggle; free-plugin and standalone theme installs keep zero-base frontend emoji removal. Standalone theme enables embed facades by default; with Aegis Dash they default off until toggled.
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.
Plugin
Before hook
After hook
Fires on
Fluent Forms
aegis_before_fluentform
aegis_after_fluentform
The form output
Gravity Forms
aegis_before_gform
aegis_after_gform
gform_get_form_filter
Ninja Forms
aegis_before_nf_form
aegis_after_nf_form
ninja_forms_before_form_display and ninja_forms_after_form_display
LearnDash course
aegis_before_learndash_course
aegis_after_learndash_course
A course page
LearnDash lesson
aegis_before_learndash_lesson
aegis_after_learndash_lesson
A lesson page
LearnDash topic
aegis_before_learndash_topic
aegis_after_learndash_topic
A topic page
LearnDash quiz
aegis_before_learndash_quiz
aegis_after_learndash_quiz
A quiz page
bbPress forums
aegis_before_bbpress_forum
aegis_after_bbpress_forum
The forums loop
bbPress topic
aegis_before_bbpress_topic
aegis_after_bbpress_topic
A single topic
Co-Authors Plus
aegis_before_post_author
aegis_after_post_author
core/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.
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
render_block_data intercepts every block before render.
For core/template-part on the front end, Aegis applies aegis_dynamic_template_part_slug.
If the filter returns a different slug and parts/{slug}.html exists (theme or child theme), that slug is used.
Skip-link injection and aegis_before_* / aegis_after_* hooks fire on whichever part actually renders.
Implemented by Aegis\Framework\DesignSystem\DynamicTemplateParts.
Filter Reference
Filter
aegis_dynamic_template_part_slug
Parameters
$slug (string), $parsed_block (array)
Return
Template part slug string
Default
The 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.
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.
status_header( 503 ) — temporary unavailability for crawlers.
Retry-After: 3600 — suggests checking back in one hour (adjust as needed).
nocache_headers() — avoids CDNs caching the maintenance response after you turn it off.
Activate and Deactivate
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.
Deactivate — Rename or delete that customized Maintenance template. No code change is required once the hook is installed.
Testing
Ensure the Maintenance template exists in the Site Editor and the hook is active.
Log out (or use a private window) and visit the site — you should see the maintenance page.
Log in and confirm the live site loads normally.
When finished, rename or delete the Maintenance template to turn mode off.
There is no Image Icon variation. Do not insert an Image block and style it as an icon.
Overview
Inline SVG (not icon fonts) for performance and accessibility.
WordPress Core ships the core collection. Aegis registers additional collections and skips icons Core already provides.
Icon IDs are {collection}/{name} — for example core/home or social/facebook.
Hardcoded black fills are rewritten to currentColor so icons follow text color and dark/light mode.
Button and tab icons (iconSet / iconName on core/button and aegis/tab) are separate from the Icon block. The editor previews them with CSS; the front end inlines SVG. Icon CSS is not written into saved button HTML (that flags invalid content in WordPress 7).
Using the Icon Block
Choose an icon from the Icon block’s picker.
Open the block inserter (+).
Search for Icon.
Insert the Icon block.
Choose an icon from the library, or paste custom SVG in Custom SVG.
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:
Select an Icon block.
Open Custom SVG in the sidebar.
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.
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
Property
Control
Description
Icon
Library picker
{collection}/{name} on the block icon attribute
Size
Dimensions
Width (height follows aspect-ratio: 1)
Color
Text color
Fill uses currentColor unless the SVG sets a non-ink color
Gradient
Icon gradient (optional)
CSS mask gradient when enabled at Aegis → Blocks
Alignment
Block toolbar
Left, center, right, or inline
Link
Icon link
Optional URL, target, and rel
Gallery
Icon gallery
Adds all-icons to render every glyph in the selected set
Color and Dark Mode
Icons use currentColor by default:
They inherit the parent text color.
In dark mode (is-style-dark), they invert with the text tokens.
The Color panel Text setting overrides the inherited color.
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.
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”).
Skip link and header icons
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):
Toggle
Effect
Gradient Colors
Gradient picker on the Icon block
Animations
Animation settings on icon elements
Custom SVG
Paste SVG markup on the block
Icon Gallery
Grid of every icon in the selected set
Responsive Sizing
Per-breakpoint icon size
REST API Endpoint
aegis/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:
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:
Collection and icon slugs: lowercase a-z, 0-9, hyphen, underscore.
Do not add SVGs whose names already exist in the Core library (those IDs stay core/{name}).
Use viewBox and currentColor (or literal black, which Aegis maps to currentColor).
Icon Sizing
Size
Typical use
16px
Inline with small text, metadata
20px
Inline with body text
24px
Standard icon size, buttons
32px
Medium emphasis
48px
Feature icons, card headers
64px
Large 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
Only icons present in the HTML are sent to the browser (no icon font, no sprite of unused glyphs).
Core icons render from the WordPress library; Aegis collections render from local SVG files.
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.
Toggle
What it adds
Gallery Navigation
Treats lightbox images in the same Group, Row, Stack, Column, or Gallery as a set. Shows Core prev/next arrows and allows arrow-key navigation.
Zoom
Double-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 Strip
Thumbnail row when a grouped set has 4 or more images.
Swipe Gestures
Groups 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
WordPress Image lightbox (Expand on click) enabled on the image.
Linked images (linkDestination other than none) do not use Core lightbox; Aegis extras do not apply.
SVG Image variation (is-style-svg) is skipped.
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.
Accessibility — Accessibility considerations for embeds.
Navigation Styles
Updated November 24, 2026
Available Navigation Styles
Slide-in Drawer
The Slide-in Drawer navigation style.
Property
Value
Style name
slide-in
Label
Slide-in Drawer
Behavior
Slides 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
Property
Value
Style name
slide-in-left
Label
Slide-in Left
Behavior
Slides 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.
Property
Value
Style name
fullscreen
Label
Fullscreen Overlay
Behavior
Covers 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
Property
Value
Style name
scroll
Label
Scroll Overlay
Behavior
Slides 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.
Navigate to Appearance → Editor.
Select the Navigation block in your header template part.
In the block settings sidebar, find the Styles section.
Select one of the four overlay variations.
Save your changes.
In Block Markup
Navigation styles can be applied in template HTML using the WordPress block style class:
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:
a Back button that returns to the previous level;
the parent item as a title, linked to its page when it has one;
the sub-items, each with its own arrow if it has further sub-items.
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:
Tab is not kept inside the menu, because the menu is part of the page.
The menu returns to the top level when the aegis:drilldown-reset event is dispatched on the Navigation block, for example when a sidebar that holds it closes: nav.dispatchEvent( new CustomEvent( 'aegis:drilldown-reset' ) ), where nav is the .wp-block-navigation.is-drilldown element.
Each drilldown row is at least 44px tall, so it is easy to tap.
Submenu Direction
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:
Support keyboard navigation when open.
Use appropriate z-index layering (1000) to appear above page content.
Transition smoothly to avoid disorienting users.
Ensure your navigation menu includes a close button or mechanism that is keyboard-accessible when using overlay styles.
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:
Connect to your server via FTP or file manager.
Verify that the vendor/ directory exists inside wp-content/themes/aegis/.
If missing, download aegis.zip from the latest Aegis release (release packages include vendor/).
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:
Verify the theme is located at wp-content/themes/aegis/style.css (not nested deeper).
Check file permissions — WordPress needs read access to the theme directory.
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:
Check your PHP version in Tools → Site Health → Info → Server.
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:
Update Aegis to 1.0.2 or later.
Clear all caches (browser, page cache plugin, server cache).
Deactivate and reactivate the theme.
Ensure the theme patterns/ directory exists and contains PHP files.
For WooCommerce shop patterns, install and activate WooCommerce and the Aegis Dash. See FAQ.
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:
Open browser developer tools (F12) and check the Console tab for errors.
Deactivate all plugins except WooCommerce (if used) and test.
Increase PHP memory limit to 256 MB.
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:
In the Site Editor, navigate to Templates.
Select the problematic template.
Click the Options menu (three dots) and select Clear customizations.
Check if the issue resolves.
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:
Hard-refresh the editor and clear any object cache / CDN cache for admin assets.
Confirm the issue persists with only Aegis (and WooCommerce if required) active.
Check the browser console for failed CSS/JS loads or cross-frame errors.
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:
Confirm which system you intended: Core for standard style supports; Aegis for hide/show, display/order/width, and query columns.
Clear conflicting per-device Display values on the block if Core viewport styles already cover the change.
Test the front end at the same widths (mobile, landscape ~480–767px, tablet ~768–1023px, desktop).
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:
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.
Outline (stroked) icons lost stroke / fill="none" to Core SVG sanitization, or fills stayed hardcoded #000 instead of currentColor.
Solution:
View page source: the skip link must be a sibling of <header role="banner">, not a parent of the header.
Confirm Aegis SkipLink runs at priority 11 and TemplatePart uses the HTML tag processor (not wrapping the skip link as the landmark root).
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).
Hard-refresh and check that icon CSS loads on the front end (core-blocks/icon.css).
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:
Update Aegis to 1.0.2 or later. The library then loads only the icons it shows and caches them.
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.
If it still does not load, check the browser’s Network tab for the wp/v2/icons request and the PHP error log.
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:
Hard-refresh the editor so svg-editor.js and bundled editor.js reload.
Enable at least one extra at Aegis → Blocks → SVG (Paste Markup is enough).
Paste markup in SVG Settings. Do not store an empty data:image/svg+xml URL.
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:
Select the Slider and set Slides Per Page to 1, or add more slides than perPage.
Confirm arrows and dots are on in the inspector, and that Aegis → Blocks → Slider Navigation and Pagination extras are on.
On the front end, confirm splide.js, splide.css, and the slider view script load.
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.
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?
Product
Includes
Aegis theme
Templates, 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)
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:
Apply one of the 60 style variations for a complete color scheme change.
Manually adjust individual colors in the Styles → Colors panel.
Navigate to Appearance → Editor → Styles → Typography. You can change the font family, size, weight, and other properties for body text, headings, links, and buttons.
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).
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.
Why does my footer menu show Home, Blog, About, and Contact?
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?
Create a new page.
Use the block inserter to add patterns from categories like Hero, Featured, CTA, and Testimonial.
Customize each pattern to match your content.
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:
Create synced or unsynced patterns from the editor (select blocks → three dots → Create pattern).
Add PHP pattern files to the patterns/ directory (for developers).
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.
Open 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:
WordPress version and PHP version (Tools → Site Health → Info).
Aegis theme version, and Aegis Dash and add-on versions if you use them.
The steps that lead to the problem, what you expected, and what happened.
Any error message from the PHP error log or the browser console.
A screenshot, if the problem is visual.
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.
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
Template
File
Pattern
Description
Index
index.html
template-archive
Fallback for every request. Post loop with pagination.
Front Page
front-page.html
pages-home
Site front page. Header and footer parts around the pages-home pattern.
Blog Home
home.html
template-home
Posts page set in Settings → Reading.
Page
page.html
template-page
Default page. Also wraps bbPress forum views when the bbPress integration is on.
Single
single.html
template-single
Default single post with title, meta, content, and comments.
Archive
archive.html
template-archive
Generic archives for categories, tags, and custom taxonomies.
Author
author.html
template-author
Author archives with bio and posts.
Date
date.html
template-date
Year, month, and day archives.
Search
search.html
template-search
Search results.
404
404.html
template-404
Not found page.
Page and Post Layouts
Template
File
Post types
Pattern
Notes
Blank
blank.html
page, post
template-blank
No header or footer. Skip link and a <main> wrapper around Post Content.
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
Template
File
Post types
Pattern
Notes
Archive: Product
archive-product.html
product
template-archive-product
Single item: Product
single-product.html
product
template-single-product
Single Product: Landing
single-product-landing.html
product
template-single-product-landing
Product Search Results
product-search-results.html
product
template-search-product
Search: Product
search-product.html
product
template-search-product
Taxonomy Product Category
taxonomy-product_cat.html
product
template-taxonomy-product_cat
Taxonomy Product Tag
taxonomy-product_tag.html
product
template-taxonomy-product_tag
Product Attribute
taxonomy-product_attribute.html
product
template-taxonomy-product_attribute
Product Category: Clothing
taxonomy-product_cat-clothing.html
product
template-taxonomy-product_cat-clothing
Product Category: Digital
taxonomy-product_cat-digital.html
product
template-taxonomy-product_cat-digital
Product Category: Outlet
taxonomy-product_cat-outlet.html
product
template-taxonomy-product_cat-outlet
Page: Cart
page-cart.html
page
template-page-cart
Page: Checkout
page-checkout.html
page
template-page-checkout
Page: Checkout Multi-Step
page-checkout-multi-step.html
page
template-page-checkout-multi-step
Three-step checkout: Shipping → Payment → Review.
Order Confirmation
order-confirmation.html
page
template-order-confirmation
Page: My Account
page-my-account.html
page
template-page-my-account
Page: Wishlist
page-wishlist.html
page
template-page-wishlist
Needs 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:
Site Editor — How to edit templates in the editor.
Pattern Reference
Updated November 24, 2026
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
Property
How it is set
Example
Category
The folder name. Labels are the folder name in title case, with cta and faq shown as CTA and FAQ.
patterns/hero/ is Hero
Slug
The first category plus the file’s Slug header, joined with a hyphen.
patterns/hero/split.php with Slug: split registers as hero-split
Inserter
Hidden 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
When
What happens
WooCommerce and Aegis Dash are both active
The plugin’s mini-cart header replaces the theme’s header-default.
The theme Related Posts block is not registered
The 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
Pattern
Slug
File
Inserter
About Founder Story
about-founder-story
founder-story.php
Yes
About Mission Vision
about-mission-vision
mission-vision.php
Yes
About Values Grid
about-values-grid
values-grid.php
Yes
Author
Folder patterns/author/ · 6 patterns
Pattern
Slug
File
Inserter
Author Archive with Sidebar
author-archive-sidebar
archive-sidebar.php
Yes
Author Archive
author-archive
archive.php
Yes
Author Biography Card
author-biography-card
biography-card.php
Yes
Author Biography Horizontal
author-biography-horizontal
biography-horizontal.php
Yes
Author Biography
author-biography
biography.php
Yes
List with Author
author-default
default.php
Yes
Blog
Folder patterns/blog/ · 17 patterns
Pattern
Slug
File
Inserter
Blog Feed
blog-featured-blog-feed
featured-blog-feed.php
Yes
Featured Post
blog-featured-post
featured-post.php
Yes
Featured Posts
blog-featured-posts
featured-posts.php
Yes
Grid Boxed
blog-grid-boxed
grid-boxed.php
Yes
Grid Compact
blog-grid-compact
grid-compact.php
Yes
Grid Masonry
blog-grid-masonry
grid-masonry.php
Yes
Latest Posts
blog-latest-posts
latest-posts.php
Yes
Minimal
blog-minimal
minimal.php
Yes
Overlay Cards
blog-overlay-cards
overlay-cards.php
Yes
Related Posts: Cards
blog-related-posts-cards
related-posts-cards.php
Yes
Related Posts: Grid
blog-related-posts-grid
related-posts-grid.php
Yes
Related Posts: List
blog-related-posts-list
related-posts-list.php
Yes
Related Posts: Minimal
blog-related-posts-minimal
related-posts-minimal.php
Yes
Single Blog Card
blog-single-card
single-card.php
Yes
Single Column
blog-single-column
single-column.php
Yes
Three Column Blog
blog-three-column
three-column.php
Yes
Two Column Featured
blog-two-column-featured
two-column-featured.php
Yes
Commerce
Folder patterns/commerce/ · 8 patterns
Pattern
Slug
File
Inserter
Money-Back Guarantee
commerce-guarantee
guarantee.php
Yes
Payment Icons
commerce-payment-icons
payment-icons.php
Yes
Product Comparison
commerce-product-comparison
product-comparison.php
Yes
Product Reviews
commerce-product-reviews
product-reviews.php
Yes
Recently Viewed Products
commerce-recently-viewed
recently-viewed.php
Yes
Shipping Information
commerce-shipping-info
shipping-info.php
Yes
Size Guide
commerce-size-guide
size-guide.php
Yes
Trust Badges
commerce-trust-badges
trust-badges.php
Yes
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.
Pattern
Slug
File
Inserter
Form Boxed
contact-form-boxed
form-boxed.php
Yes
Contact Icons
contact-icons
icons.php
Yes
Contact Two Column
contact-two-column
two-column.php
Yes
CTA
Folder patterns/cta/ · 7 patterns
Pattern
Slug
File
Inserter
Feature Banner
cta-banner
banner.php
Yes
Box
cta-box
box.php
Yes
Commerce Free Shipping CTA
cta-commerce-free-shipping
commerce-free-shipping.php
Yes
Commerce Newsletter CTA
cta-commerce-newsletter
commerce-newsletter.php
Yes
Commerce Sale CTA
cta-commerce-sale
commerce-sale.php
Yes
Horizontal
cta-horizontal
horizontal.php
Yes
Newsletter CTA
cta-newsletter
newsletter.php
Yes
Event
Folder patterns/event/ · 28 patterns
Pattern
Slug
File
Inserter
Cinema About
event-event-cinema-about
cinema-about.php
Yes
Cinema Cast & Crew
event-event-cinema-cast
cinema-cast.php
Yes
Cinema CTA
event-event-cinema-cta
cinema-cta.php
Yes
Cinema Hero
event-event-cinema-hero
cinema-hero.php
Yes
Conference CTA
event-event-conference-cta
conference-cta.php
Yes
Conference Hero
event-event-conference-hero
conference-hero.php
Yes
Conference Speakers
event-event-conference-speakers
conference-speakers.php
Yes
Conference Tracks
event-event-conference-tracks
conference-tracks.php
Yes
Conference Venue
event-event-conference-venue
conference-venue.php
Yes
Exhibition About
event-event-exhibition-about
exhibition-about.php
Yes
Exhibition Artists
event-event-exhibition-artists
exhibition-artists.php
Yes
Exhibition Gallery
event-event-exhibition-gallery
exhibition-gallery.php
Yes
Exhibition Hero
event-event-exhibition-hero
exhibition-hero.php
Yes
Exhibition Info
event-event-exhibition-info
exhibition-info.php
Yes
Exhibition Tours
event-event-exhibition-tours
exhibition-tours.php
Yes
Music Festival Hero
event-event-music-festival-hero
music-festival-hero.php
Yes
Music Festival Info
event-event-music-festival-info
music-festival-info.php
Yes
Music Festival Lineup
event-event-music-festival-lineup
music-festival-lineup.php
Yes
Music Festival Passes
event-event-music-festival-passes
music-festival-passes.php
Yes
Talk Hero
event-talk-hero
talk-hero.php
Yes
Talk Series
event-event-talk-series
talk-series.php
Yes
Talk Speaker
event-event-talk-speaker
talk-speaker.php
Yes
Talk Topics
event-event-talk-topics
talk-topics.php
Yes
Workshop CTA
event-event-workshop-cta
workshop-cta.php
Yes
Workshop Gallery
event-event-workshop-gallery
workshop-gallery.php
Yes
Workshop Hero
event-workshop-hero
workshop-hero.php
Yes
Workshop Instructor
event-workshop-instructor
workshop-instructor.php
Yes
Workshop Schedule
event-workshop-schedule
workshop-schedule.php
Yes
FAQ
Folder patterns/faq/ · 3 patterns
Pattern
Slug
File
Inserter
Accordion With Sidebar
faq-accordion-sidebar
accordion-sidebar.php
Yes
Accordion
faq-accordion
accordion.php
Yes
FAQs
faq-default
default.php
Yes
Featured
Folder patterns/featured/ · 5 patterns
Pattern
Slug
File
Inserter
Feature Alternating
featured-alternating
alternating.php
Yes
Feature Grid Icons
featured-grid-icons
grid-icons.php
Yes
Feature Icon Boxes
featured-icon-boxes
icon-boxes.php
Yes
Image
featured-image
image.php
Yes
Feature Images Two Column
featured-images-two-column
images-two-column.php
Yes
Footer
Folder patterns/footer/ · 6 patterns
Pattern
Slug
File
Inserter
Centered
footer-centered
centered.php
Yes
Footer Default
footer-default
default.php
Yes
Minimal
footer-minimal
minimal.php
Yes
Store Footer Default
footer-store-default
store-default.php
Yes
Store Footer Minimal
footer-store-minimal
store-minimal.php
Yes
Wide
footer-wide
wide.php
Yes
Header
Folder patterns/header/ · 6 patterns
Pattern
Slug
File
Inserter
Center Logo
header-center-logo
center-logo.php
Yes
Header Center Menu
header-center-menu
center-menu.php
Yes
Header Default
header-default
default.php
Yes
Menu Left
header-menu-left
menu-left.php
Yes
Store Header Default
header-store-default
store-default.php
Yes
Store Header Minimal
header-store-minimal
store-minimal.php
Yes
Hero
Folder patterns/hero/ · 7 patterns
Pattern
Slug
File
Inserter
Hero Archive
hero-archive
archive.php
Yes
Hero Centered Dark
hero-centered-dark
centered-dark.php
Yes
Hero Cover
hero-cover
cover.php
Yes
Hero Image Below
hero-image-below
image-below.php
Yes
Hero Minimal
hero-minimal
minimal.php
Yes
Hero Split
hero-split
split.php
Yes
Hero Video
hero-video
video.php
Yes
Hidden
Folder patterns/hidden/ · 3 patterns
Pattern
Slug
File
Inserter
Page 404
hidden-404
404.php
No
404 Illustrated
hidden-illustrated
illustrated.php
No
404 Minimal
hidden-minimal
minimal.php
No
Logos
Folder patterns/logos/ · 3 patterns
Pattern
Slug
File
Inserter
As Seen In
logos-as-seen-in
as-seen-in.php
Yes
Logo Grid
logos-logo-grid
logo-grid.php
Yes
Logo Row
logos-logo-row
logo-row.php
Yes
Newsletter
Folder patterns/newsletter/ · 3 patterns
Pattern
Slug
File
Inserter
Newsletter Banner
newsletter-banner
banner.php
Yes
Newsletter Inline
newsletter-inline
inline.php
Yes
Newsletter Split
newsletter-split
split.php
Yes
Notice
Folder patterns/notice/ · 16 patterns
Pattern
Slug
File
Inserter
Affiliate Disclaimer
notice-disclaimer-affiliate
disclaimer-affiliate.php
Yes
Beta Disclaimer
notice-disclaimer-beta
disclaimer-beta.php
Yes
Earnings Disclaimer
notice-disclaimer-earnings
disclaimer-earnings.php
Yes
Editorial Independence Disclaimer
notice-disclaimer-editorial
disclaimer-editorial.php
Yes
Financial Disclaimer
notice-disclaimer-financial
disclaimer-financial.php
Yes
Legal Disclaimer
notice-disclaimer-legal
disclaimer-legal.php
Yes
Medical Disclaimer
notice-disclaimer-medical
disclaimer-medical.php
Yes
Sponsored Content Disclaimer
notice-disclaimer-sponsored
disclaimer-sponsored.php
Yes
Testimonial Disclaimer
notice-disclaimer-testimonial
disclaimer-testimonial.php
Yes
Age Verification Notice
notice-notice-age-gate
notice-age-gate.php
Yes
Error Notice
notice-notice-error
notice-error.php
Yes
Geographic Restriction Notice
notice-notice-geo-restriction
notice-geo-restriction.php
Yes
Info Notice
notice-notice-info
notice-info.php
Yes
Success Notice
notice-notice-success
notice-success.php
Yes
Under Construction
notice-notice-under-construction
notice-under-construction.php
Yes
Warning Notice
notice-notice-warning
notice-warning.php
Yes
Pages
Folder patterns/pages/ · 20 patterns
Pattern
Slug
File
Inserter
About Page
pages-about
about.php
Yes
Blog Page
pages-blog
blog.php
Yes
Cinema Event
pages-event-cinema
cinema.php
Yes
Conference Event
pages-event-conference
conference.php
Yes
Contact Page
pages-contact
contact.php
Yes
Exhibition Event
pages-event-exhibition
exhibition.php
Yes
Funnel Sales Page
pages-funnel-sales
funnel-sales.php
Yes
Funnel Squeeze Page
pages-funnel-squeeze
funnel-squeeze.php
Yes
Funnel Thank You Page
pages-funnel-thank-you
funnel-thank-you.php
Yes
Page Home
pages-home
home.php
Yes
Landing Page
pages-landing
landing.php
Yes
Music Festival
pages-event-music-festival
music-festival.php
Yes
Portfolio Page
pages-portfolio
portfolio.php
Yes
Product Landing Page (Dynamic)
pages-product-landing-dynamic
product-landing-dynamic.php
Yes
Product Landing Page (Static)
pages-product-landing-static
product-landing-static.php
Yes
Services Page
pages-services
services.php
Yes
Shop Full Width
pages-shop-full-width
shop-full-width.php
Yes
Shop Page
pages-shop
shop.php
Yes
Talk & Lecture Event
pages-event-talk
talk.php
Yes
Workshop Event
pages-event-workshop
workshop.php
Yes
Portfolio
Folder patterns/portfolio/ · 3 patterns
Pattern
Slug
File
Inserter
Portfolio Image Gallery Grid
portfolio-image-gallery-grid
image-gallery-grid.php
Yes
Portfolio Image Gallery
portfolio-image-gallery
image-gallery.php
Yes
Project Showcase
portfolio-project-showcase
project-showcase.php
Yes
Pricing
Folder patterns/pricing/ · 4 patterns
Pattern
Slug
File
Inserter
Pricing Comparison Table
pricing-comparison-table
comparison-table.php
Yes
Pricing Single Highlight
pricing-single-highlight
single-highlight.php
Yes
Pricing Three Column
pricing-three-column
three-column.php
Yes
Pricing Two Column
pricing-two-column
two-column.php
Yes
Product
Folder patterns/product/ · 3 patterns
Pattern
Slug
File
Inserter
Product Category Grid
product-category-grid
category-grid.php
Yes
Featured Product Grid
product-featured-grid
featured-grid.php
Yes
On Sale Products
product-on-sale
on-sale.php
Yes
Sidebar
Folder patterns/sidebar/ · 1 pattern
Pattern
Slug
File
Inserter
Sidebar Default
sidebar-default
default.php
Yes
Stats
Folder patterns/stats/ · 4 patterns
Pattern
Slug
File
Inserter
Stats Four Columns
stats-four-columns
four-columns.php
Yes
Stats Progress Bars
stats-progress-bars
progress-bars.php
Yes
Stats Three Columns Dark
stats-three-columns-dark
three-columns-dark.php
Yes
Stats Two Column Icons
stats-two-column-icons
two-column-icons.php
Yes
Team
Folder patterns/team/ · 4 patterns
Pattern
Slug
File
Inserter
Team Cards Social
team-cards-social
cards-social.php
Yes
Team Grid Simple
team-grid-simple
grid-simple.php
Yes
Team Members
team-members
members.php
Yes
Team Spotlight
team-spotlight
spotlight.php
Yes
Template
Folder patterns/template/ · 48 patterns
Pattern
Slug
File
Inserter
Template 404
template-404
404.php
No
Archive Product
template-archive-product
archive-product.php
No
Template Archive
template-archive
archive.php
No
Author Guest
template-author-guest
author-guest.php
No
Template Author
template-author
author.php
No
Blank
template-blank
blank.php
No
Coming Soon
template-coming-soon
coming-soon.php
No
Template Date
template-date
date.php
No
Front Page
template-front-page
front-page.php
No
Full Width
template-full-width
full-width.php
No
Blog Home
template-home
home.php
No
Maintenance
template-maintenance
maintenance.php
No
Order Confirmation
template-order-confirmation
order-confirmation.php
No
Page Boxed
template-page-boxed
page-boxed.php
No
Page Cart
template-page-cart
page-cart.php
No
Page Checkout Multi-Step
template-page-checkout-multi-step
page-checkout-multi-step.php
No
Page Checkout
template-page-checkout
page-checkout.php
No
Page Coming Soon
template-page-coming-soon
page-coming-soon.php
No
Page Contact
template-page-contact
page-contact.php
No
Page Hero Minimal
template-page-hero-minimal
page-hero-minimal.php
No
Page Landing
template-page-landing
page-landing.php
No
Page My Account
template-page-my-account
page-my-account.php
No
Page No Title
template-page-no-title
page-no-title.php
No
Page Wishlist
template-page-wishlist
page-wishlist.php
No
Page With Sidebar
template-page-with-sidebar
page-with-sidebar.php
No
Template Page
template-page
page.php
No
Search Product
template-search-product
search-product.php
No
Template Search
template-search
search.php
No
Single Full Width
template-single-full-width
single-full-width.php
No
Single No Featured Image
template-single-no-featured-image
single-no-featured-image.php
No
Single Product Landing
template-single-product-landing
single-product-landing.php
No
Single Product
template-single-product
single-product.php
No
Template Single
template-single
single.php
No
Category Books
template-taxonomy-category-books
taxonomy-category-books.php
No
Category Events
template-taxonomy-category-events
taxonomy-category-events.php
No
Category Podcasts
template-taxonomy-category-podcasts
taxonomy-category-podcasts.php
No
Category Portfolio
template-taxonomy-category-portfolio
taxonomy-category-portfolio.php
No
Category Recipes
template-taxonomy-category-recipes
taxonomy-category-recipes.php
No
Category Video
template-taxonomy-category-video
taxonomy-category-video.php
No
Category Archive
template-taxonomy-category
taxonomy-category.php
No
Tag Featured
template-taxonomy-post_tag-featured
taxonomy-post_tag-featured.php
No
Tag Archive
template-taxonomy-post_tag
taxonomy-post_tag.php
No
Product Attribute
template-taxonomy-product_attribute
taxonomy-product_attribute.php
No
Product Category Clothing
template-taxonomy-product_cat-clothing
taxonomy-product_cat-clothing.php
No
Product Category Digital
template-taxonomy-product_cat-digital
taxonomy-product_cat-digital.php
No
Product Category Outlet
template-taxonomy-product_cat-outlet
taxonomy-product_cat-outlet.php
No
Taxonomy Product Category
template-taxonomy-product_cat
taxonomy-product_cat.php
No
Taxonomy Product Tag
template-taxonomy-product_tag
taxonomy-product_tag.php
No
Testimonial
Folder patterns/testimonial/ · 4 patterns
Pattern
Slug
File
Inserter
Testimonial Cards Grid
testimonial-cards-grid
cards-grid.php
Yes
Testimonial Quote Large
testimonial-quote-large
quote-large.php
Yes
Testimonial Single
testimonial-single
single.php
Yes
Testimonial Three Column
testimonial-three-column
three-column.php
Yes
Timeline
Folder patterns/timeline/ · 3 patterns
Pattern
Slug
File
Inserter
Timeline Horizontal
timeline-horizontal
horizontal.php
Yes
Timeline Stacked
timeline-stacked
stacked.php
Yes
Timeline Vertical
timeline-vertical
vertical.php
Yes
Utility
Folder patterns/utility/ · 6 patterns
Pattern
Slug
File
Inserter
Color Palette
utility-color-palette
color-palette.php
Yes
Utility Dark Mode Toggle
utility-dark-mode-toggle
dark-mode-toggle.php
Yes
Gradients
utility-gradients
gradients.php
Yes
Patterns
utility-patterns
patterns.php
No
Skip to Content
utility-skip-to-content
skip-to-content.php
Yes
Utility Search Toggle
utility-utility-search-toggle
utility-search-toggle.php
Yes
Inserting Patterns
Open the block inserter (+) in the editor toolbar.
Switch to the Patterns tab.
Select a category from the dropdown.
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.
Related Pages
Block Patterns — Detailed guide on using and customizing patterns.
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.
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.
Enable or disable dark mode (default true). Returning false also removes the editor light/dark preview toggle
aegis_dynamic_custom_properties
Dynamic CSS custom properties
aegis_patterns
Pattern categories
aegis_pattern_dirs
Pattern scan directories
aegis_template_tags
Template tag output
aegis_template_tag_post_fields
Post 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_minute
Reading time calculation (default 200)
aegis_comments_form_title_tag
Comments form heading tag
aegis_placeholder_svg
Placeholder SVG markup
aegis_format_inline_js
Inline JS formatting
aegis_default_mode
Default 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_js
Final 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_html
Collected front-end template, template part, and post markup that decides which conditional assets load. Argument: string $markup (FrontendContentContext.php)
aegis_editor_data
Data passed to the framework editor script as window.aegis. Argument: array $data (EditorAssets.php)
aegis_query_enhancements_data
Post types, taxonomies, meta operators, meta types, and order-by options for the Query enhancements panel. Argument: array $data (QueryEnhancements.php)
Swap a core/template-part slug at render time when an alternate parts/{slug}.html exists. See Dynamic Template Parts.
aegis_theme_update_repository
GitHub repository (owner/name) the theme checks for updates. Default aegiswp/aegis. Argument: string $repository (src/Admin/GitHubUpdater.php). See Updating.
aegis_companion_package_url
Zip 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
Filter
Description
aegis_font_families
Font families for theme.json
aegis_pro_analytics_retention_days
Video analytics retention
aegis_pro_computed_value
Block Bindings computed values
aegis_tabs_tab_visibility
Tab block visibility
Block Filters (Examples)
Filter
Description
aegis_related_posts_query
Related 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)
Go to Aegis → Code Snippets → Settings and turn on PHP Enabled.
Add a snippet and choose the Functions (PHP) type.
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.
<?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 completely
aegis_dark_mode
Always start in light mode
aegis_default_mode returning light
Always start in dark mode
aegis_default_mode returning dark
Start in a different mode on some pages
aegis_default_mode with a conditional tag
Test a mode without changing anything
The ?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.
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.
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 ].
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 {return250;} );
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';} );
Related Posts
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.
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).
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.
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:
Package
Role
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.
Ensure the following tools are installed on your machine:
Tool
Minimum Version
Purpose
Node.js
20.18 or later (.nvmrc pins 22)
JavaScript build tools
npm
10 or later
Package management
PHP
8.1 or later
Theme runtime and testing
Composer
2 or later
PHP dependency management
Git
Any recent version
Version control
Docker
Latest
WordPress 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:
PSR-4 autoloader configuration.
Development tools (PHPUnit, PHPCS).
Any required libraries.
Node.js Dependencies
Copied!
Shell
npm install
This installs all JavaScript packages into the node_modules/ directory, including:
@wordpress/scripts — Build toolchain.
ESLint and stylelint — Code quality tools.
Testing utilities.
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:
WordPress on http://localhost:8888
WordPress admin at http://localhost:8888/wp-admin/
MySQL database on port 3306 (internal to Docker)
Default Credentials
Field
Value
Admin URL
http://localhost:8888/wp-admin/
Username
admin
Password
password
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:
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)
Video editor assets are built in the Aegis Video add-on.
Webpack Configuration
Aegis extends the default @wordpress/scripts Webpack config. Entries from block.jsonfile: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:
Block JavaScript compilation (JSX, ES modules).
CSS extraction and processing.
Asset copying and hashing.
WordPress dependency extraction.
CSS Processing
CSS files are processed through PostCSS with the following plugins:
Plugin
Purpose
Autoprefixer
Adds vendor prefixes for browser compatibility
postcss-import
Allows @import statements
cssnano (production)
Minifies CSS output
Writing CSS
Aegis stylesheets use standard CSS with CSS custom properties:
Or manually delete compiled files under src/Blocks/ (see .gitignore).
Environment Variables
Variable
Purpose
Default
NODE_ENV
Build mode
production (build) / development (dev)
SCRIPT_DEBUG
WordPress debug mode
Loads 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
Ensure your editor saves files to disk (not just to memory).
Check that file watchers are not being blocked (increase fs.inotify.max_user_watches on Linux).
Restart the watcher.
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.
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
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).
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.
Grouped by type (position, display, box model, typography)
Color format
Hex values must be lowercase
No duplicate properties
Error
Selector specificity
Max specificity enforced
Custom property naming
Must follow theme token conventions
No !important
Warning (avoid unless necessary)
Unit usage
Prefer 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"?><rulesetname="Aegis Theme"><description>Coding standards for Aegis theme</description><ruleref="WordPress"/><ruleref="WordPress-Extra"/><ruleref="WordPress-Docs"/><configname="text_domain"value="aegis"/><configname="minimum_wp_version"value="7.0"/><configname="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
Standard
Enforcement
WordPress naming conventions
Functions: snake_case, Classes: PascalCase
Function prefixing
All functions prefixed with aegis_
Hook documentation
Inline documentation for all hooks
Escaping output
All output must be escaped
Sanitizing input
All input must be sanitized
Nonce verification
Required for form processing
Text domain
Must 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):
Staged JavaScript files are checked with ESLint.
Staged CSS files are checked with stylelint.
Staged PHP files are checked with PHPCS.
If any linter reports errors, the commit is blocked.
EditorConfig
The .editorconfig file ensures consistent formatting across editors:
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.
Automated 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).
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.
.pa11yci.ci.json is gitignored. For wp-env, use npm run test:a11y:env or retarget the urls host to 8888.
What pa11y Checks
Category
Examples
Color contrast
Text against backgrounds
ARIA usage
Correct roles, states, properties
Form labels
Inputs with associated labels
Headings
Logical heading hierarchy
Images
Alt text presence
Links
Distinguishable link text
Landmarks
Proper page regions
Keyboard
Focus order and visibility
Handling False Positives
If pa11y reports an issue that is a false positive:
Verify the issue is genuinely a false positive by manual testing.
Add the specific rule to the ignore list in the configuration.
Document why the rule is ignored.
Running All Tests
To run the complete test suite:
Copied!
Shell
npm run test
This typically runs:
PHPUnit tests.
JavaScript tests (if any).
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:
Check
Trigger
Must Pass
PHPUnit
Every PR
Yes
ESLint
Every PR
Yes
stylelint
Every PR
Yes
PHPCS
Every PR
Yes
pa11y-ci
Every PR
Yes
WPAudit
Nightly / Release
Advisory
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:
Area
Target
Service classes
80%+
Utility functions
90%+
Block registration
70%+
Overall
75%+
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).
Check
How
Core responsive style states
Edit Group/Columns/Image/Heading/Button with viewport styles; confirm front-end CSS
Aegis Display / visibility
Toggle hide-on-mobile, display/order/width; confirm Landscape/Tablet buttons still work
Iframed editor
Post Editor + Site Editor: Global Styles, overlays, icons, Aegis inspector panels
React 19 experiment
Enable Gutenberg gutenberg-react-19; open theme blocks and Aegis Dash admin/editor UIs; watch console
Regression baseline
Spot-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.
# Start from the develop branchgit checkout developgit pull origin develop# Create your feature branchgit checkout -b feature/your-feature-name
Making Changes
Coding Standards
All contributions must follow the project coding standards:
PHP — WordPress PHP Coding Standards (enforced via PHPCS).
JavaScript — WordPress JavaScript Coding Standards (enforced via ESLint).
CSS — WordPress CSS Coding Standards (enforced via stylelint).
No abbreviations or contractions in user-facing text.
See Code Quality for detailed linting information.
Commit Messages
Write clear, descriptive commit messages:
Copied!
Markdown
feat: add countdown block with configurable target date- Register countdown block with block.json metadata- Add editor component with date picker control- Add frontend JavaScript for timer animation- Add responsive styles for mobile viewports- Add unit tests for countdown logic
Commit Prefixes
Prefix
Usage
feat:
New feature
fix:
Bug fix
docs:
Documentation only
style:
Code style (formatting, no logic change)
refactor:
Code restructuring (no feature/fix)
test:
Adding or updating tests
chore:
Build process, dependencies, tooling
perf:
Performance improvement
a11y:
Accessibility improvement
Testing Your Changes
Before submitting a PR:
Copied!
Shell
# Run lintingnpm run lint# Run testscomposer run testnpm run test# Run accessibility testsnpm run test:a11y# Build production assetsnpm run build
All commands must pass without errors.
Submitting a Pull Request
PR Process
Push your branch: bash git push -u origin feature/your-feature-name
Open a pull request against the develop branch.
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:
Automated checks — CI runs linting, tests, and accessibility checks.
Maintainer review — A project maintainer reviews the code.
Feedback — Address any requested changes by pushing additional commits.
Approval — Once approved, the PR is merged.
Review Criteria
Criterion
Description
Code quality
Follows coding standards, well-structured
Functionality
Works as intended, no regressions
Performance
Does not degrade page load performance
Accessibility
Accessibility-ready foundation targeting WCAG 2.2 AA; no a11y regressions
Testing
Appropriate tests included
Documentation
Code is documented, user docs updated if needed
Types of Contributions
Bug Fixes
Check existing bug reports for duplicates.
Create an issue describing the bug (if one does not exist).
Reference the issue in your PR.
Include a test that verifies the fix.
New Features
Open a feature request issue first to discuss the proposal.
Wait for maintainer feedback before investing significant effort.
Follow the established architecture patterns.
Include tests and documentation.
Documentation
Documentation PRs use the docs/* branch prefix. Source pages live under docs/ (not a separate .wiki/ checkout). See Contributing Documentation for folder layout, sidebar wiring, link conventions, and scope rules (theme vs plugin vs Pro).
Typical updates:
Pages in docs/ (plus _sidebar.md / home.md when adding pages).
Translations are managed through WordPress.org or direct contributions:
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.
Create a .po file for your locale.
Submit the translation via PR or the WordPress translation platform.
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:
theme, child-theme, plugin or add-on. Shown as a badge on the Doc Set header.
extends
Slug 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.
aliases
Earlier slugs of a renamed product, so the import keeps its Doc Set and docs instead of creating a copy.
order
Position 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:
README.md, INSTRUCTIONS.md, DESIGN.md, BUILD.md
CONTRIBUTING.md
WordPress.org readme.txt (theme / plugins)
Screenshots go in the folder’s screenshots/ directory and are linked like any image: . 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
Theme docs cover templates, patterns, theme.json tokens, style variations, the framework’s core block enhancements, and theme-owned features.
Aegis Dash docs cover the Aegis blocks (Countdown, Slider, Toggle, Related Posts, Map, Modal), the admin dashboard, integrations, snippets and conditionals. Aegis Pro and Aegis Ads document their own features. Do not duplicate those pages under the theme tree.
Each product documents only what it offers. If a feature moves to another product, move its page and fix the links.
Cross-link instead of copying: use relative links to the sibling docs trees.
Prefer design tokens over hardcoded hex in examples. When documenting palette values, match live theme.json (see Color Palette and root DESIGN.md).
Keep counts accurate (patterns, templates, palette size). Prefer Theme Inventory and on-disk trees over outdated README copy.
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/
Start with a single # title that matches the sidebar label.
Use ## / ### for sections; keep one job per section.
Write for the reader (site builder or developer); avoid internal chatty notes.
Use tables for inventories and option matrices.
Use fenced code blocks for CSS custom properties, block markup, and shell commands.
Adding or updating a page
Create or edit the .md file in the correct folder under docs/.
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.
If the page is a primary topic, add a one-line link under the matching section in docs/home.md.
From feature/code PRs, update any page that would otherwise be wrong (counts, hexes, APIs, file paths).
Re-import the folder to see the change on the site. Documentation stays local, so there is nothing to commit or push.
Theme Inventory — Ground-truth inventory for counts and structure
Deployment
Updated November 24, 2026
Release Process
Versioning
Aegis follows semantic versioning (SemVer):
Type
Format
When
Patch
1.0.x
Bug fixes, documentation updates
Minor
1.x.0
New features, backwards compatible
Major
x.0.0
Breaking changes, major rewrites
Release Workflow
Feature development — Work happens on feature branches.
Pull request — Submit PR to develop branch.
Code review — PR is reviewed by maintainers.
CI passes — All tests, linting, and checks must pass.
Merge to develop — PR is merged into the development branch.
Release preparation — When ready, develop is merged to main.
Version bump — Update version numbers in style.css, package.json, and readme.txt, and update CHANGELOG.md.
Tag — Push a tag in the form v1.2.3 (or v1.2.3-rc1).
Automated build — The tag starts the release workflow (release.yml), which builds and uploads the package (see below).
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:
Checks that the tag is semantic (v1.2.3 or v1.2.3-rc1).
Runs npm ci and npm run build (Node 20).
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.
Reinstalls Composer dependencies with --no-dev --optimize-autoloader.
Copies the theme into an aegis/ folder with rsync, skipping everything in .distignore.
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.
Zips it as aegis.zip (the zip’s root folder is aegis/) and writes aegis.zip.sha256.
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:
node_modules/, tests/, .git/, and CI configuration
Common Issues — Troubleshooting deployment problems.
Architecture
Updated November 24, 2026
Four-Layer Model
Layer
Location
Responsibility
Theme
wp-content/themes/aegis
FSE 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
Framework
vendor/aegis/framework
Core block enhancements, variations, design system engine, injection hook firing
Aegis Dash
wp-content/plugins/aegis-dash
Admin, the Aegis blocks (Map, Modal, Slider, Toggle, Countdown, Related Posts), snippets, conditionals, integrations, analytics, WooCommerce/TI Wishlist block patterns (gated)
Pro plugin
wp-content/plugins/aegis-pro
Hook 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
PSR-4 autoloading via Composer — namespace Aegis\ mapped to src/ (theme glue + blocks)
Framework bootstrap — Aegis::register() from vendor/aegis/framework
Theme services — CompanionNotice, GitHubUpdater, BlockRegistrar (fallback copies of the Aegis blocks from blocks-manifest.php, registered only when Aegis Dash has not registered them; Related Posts and Slider extras localization, Related Posts pattern gating), NavigationFallback, and PatternDependencies (hides patterns whose blocks need an inactive plugin, and strips them from headers, when the editor loads patterns), all started in src/bootstrap.php
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:
37+ core block render filters (CoreBlocks\), including core/icon and Lightbox extras
Icon library registration (Icons\Library) on WordPress 7.1+; wp aegis migrate-icons for leftover Image icons
Block settings (Visibility, Animation, Query enhancements, …). Visibility viewport/a11y extras add CSS classes to the block or post-content root; hook patterns wrap. Color Scheme follows is-style-* and default-mode-* on body.
Block variations (Accordion, Counter, Marquee, Newsletter, SVG Image — not Image Icon). Marquee extras are gated at Aegis → Blocks → Marquee. Accordion, Newsletter, and SVG styles register once in PHP (register_style()), not via BlockStyles. The SVG inspector is svg-editor.js (no SVGOMG Optimize control).
Design system (Patterns scanner, REST trim, template pattern expander, dynamic template parts, DarkMode, SkipLink, BlockStyles for decorative styles such as surface/checklist, EditorAssets, navigation overlay, editor overlay fix)
Integration CSS (gated by plugin settings when the plugin is active), including Meta Box form styling (plugins/meta-box.css), Easy Digital Downloads download/checkout styling (plugins/edd/edd.css), AffiliateWP Affiliate Area and login/register form styling (plugins/affiliate-wp.css), Fluent Forms form element and button styling (plugins/fluent-forms.css, injected on fluentform / ff_form / fluent_form / fluent-form / ff-form), Fluent Booking calendar and appointment styling (plugins/fluentbooking.css, injected on fluent-booking / fcal_ / fcal- / fluentbooking), Gravity Forms form element, input, and button styling (plugins/gravity-forms.css, injected on gform_wrapper / gravity-theme / gform / gform_body / gform-body / gfield), WooCommerce shop/cart/checkout styling (plugins/woocommerce/woocommerce.css) and breadcrumbs (plugins/woocommerce/woocommerce-breadcrumbs.css, injected on woocommerce-breadcrumb / wc-block-breadcrumbs / wp-block-woocommerce-breadcrumbs). Classic and Store Breadcrumb delimiters wrap in .aegis-breadcrumb-separator (woocommerce_breadcrumb_defaults and render_block_woocommerce/breadcrumbs). Also the Code Block Pro overlay (plugins/code-block-pro.css), and the Syntax Highlighting Code Block overlay (plugins/syntax-highlighting-code-block.css, injected on hljs / shcb-)
Injection hook firing on template parts and post content
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: