Understanding Templates

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

Available Templates

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

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

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

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

Using Templates

Assigning a Template to a Page

When editing a page in the block editor:

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

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

Editing a Template

To modify the structure of a template:

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

Creating a Custom Template

Create a custom template from Templates → Add New Template.

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

Template Structure

Most Aegis templates follow a consistent structure:

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

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

Template Hierarchy in Aegis

WordPress uses the following priority when selecting a template:

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

WooCommerce Template Details

Multi-Step Checkout

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

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

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

Product Templates

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

Wishlist Page

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

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

See WooCommerce Integration for shortcode details and troubleshooting.

bbPress

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

Maintenance and Coming Soon

Aegis includes utility templates for planned outages and launch pages:

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

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

Customization Tips

Next Steps