Understanding Templates
In a block theme, templates are HTML files composed entirely of block markup. They live in the templates/ directory and determine the layout for specific pages or content types. WordPress automatically selects the appropriate template based on the page being viewed, following the template hierarchy.
Available Templates
The theme ships 50 template files. 40 of them are registered in theme.json as customTemplates, so they show up in the template picker for the post types they list. The full list, with files, post types, and the pattern each one loads, is in the Template Reference.
| 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.htmlfor 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).
Wishlist Page
The Wishlist template requires WooCommerce, the Aegis Dash, and TI WooCommerce Wishlist:
- Install and activate WooCommerce, the Aegis Dash, and TI WooCommerce Wishlist.
- Create a new page (for example, Wishlist).
- In the page sidebar, set Template to Wishlist (visible only when dependencies are active).
- Publish the page — the template loads Aegis Dash’s
template-page-wishlistpattern with the[ti_wishlisttable]shortcode. - Link to the page from your navigation or My Account area as needed.
See WooCommerce Integration for shortcode details and troubleshooting.
bbPress
There is no dedicated single-forum.html (or similar) template. When Aegis → Integrations → Community → bbPress is on, the framework wraps bbPress views in the Page template: locate_block_template( $template, 'page', array( 'page.php' ) ). WordPress resolves templates/page.html; the PHP fallback from bbPress theme-compat is kept. Editing Page in the Site Editor is what changes the forum chrome (header, footer, and surrounding layout).
Maintenance and Coming Soon
Aegis includes utility templates for planned outages and launch pages:
| Template | Filename | Description |
|---|---|---|
| Maintenance | maintenance.html | On-brand maintenance page (loads template-maintenance). |
| Coming Soon | coming-soon.html | Site-wide coming soon layout. |
| Page Coming Soon | page-coming-soon.html | Page-assigned coming soon layout. |
Forcing the Maintenance template for logged-out visitors requires a small template_include hook, added through a plugin such as an Aegis Code Snippets snippet. See Maintenance Mode for the full advanced how-to and code snippets.
Customization Tips
- 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.
- Template Reference — View the complete template reference table.
- Site Editor — Learn how to edit templates in the Site Editor.