Each template file is a thin wrapper: it loads one pattern from patterns/template/ (for example templates/single.html loads template-single). Edit the pattern file to change a template’s default layout. front-page.html is the exception: it places the header and footer parts itself and loads pages-home between them.

Hierarchy Templates

TemplateFilePatternDescription
Indexindex.htmltemplate-archiveFallback for every request. Post loop with pagination.
Front Pagefront-page.htmlpages-homeSite front page. Header and footer parts around the pages-home pattern.
Blog Homehome.htmltemplate-homePosts page set in Settings → Reading.
Pagepage.htmltemplate-pageDefault page. Also wraps bbPress forum views when the bbPress integration is on.
Singlesingle.htmltemplate-singleDefault single post with title, meta, content, and comments.
Archivearchive.htmltemplate-archiveGeneric archives for categories, tags, and custom taxonomies.
Authorauthor.htmltemplate-authorAuthor archives with bio and posts.
Datedate.htmltemplate-dateYear, month, and day archives.
Searchsearch.htmltemplate-searchSearch results.
404404.htmltemplate-404Not found page.

Page and Post Layouts

TemplateFilePost typesPatternNotes
Blankblank.htmlpage, posttemplate-blankNo header or footer. Skip link and a <main> wrapper around Post Content.
Full Widthfull-width.htmlpage, posttemplate-full-widthContent spans the wide width (1200px).
Page (No Title)page-no-title.htmlpage, posttemplate-page-no-titleOmits the title block. Useful with a custom hero.
Page: Boxedpage-boxed.htmlpage, posttemplate-page-boxed
Page: Hero Minimalpage-hero-minimal.htmlpagetemplate-page-hero-minimal
Page: Contactpage-contact.htmlpagetemplate-page-contact
Page: Landingpage-landing.htmlpagetemplate-page-landing
Page: With Sidebarpage-with-sidebar.htmlpage, posttemplate-page-with-sidebarContent with the Sidebar template part.
Single: Full Widthsingle-full-width.htmlposttemplate-single-full-width
Single: No Featured Imagesingle-no-featured-image.htmlposttemplate-single-no-featured-image
Author: Guestauthor-guest.htmlpagetemplate-author-guestGuest author archives.

Utility Templates

TemplateFilePost typesPatternNotes
Maintenancemaintenance.htmlpagetemplate-maintenanceOn-brand maintenance page. See Maintenance Mode.
Coming Sooncoming-soon.htmlpagetemplate-coming-soon
Page: Coming Soonpage-coming-soon.htmlpagetemplate-page-coming-soon

Content Archives

TemplateFilePost typesPatternNotes
Category Archivestaxonomy-category.htmlpagetemplate-taxonomy-category
Category: Bookstaxonomy-category-books.htmlpagetemplate-taxonomy-category-books
Category: Eventstaxonomy-category-events.htmlpagetemplate-taxonomy-category-events
Category: Podcaststaxonomy-category-podcasts.htmlpagetemplate-taxonomy-category-podcasts
Category: Portfoliotaxonomy-category-portfolio.htmlpagetemplate-taxonomy-category-portfolio
Category: Recipestaxonomy-category-recipes.htmlpagetemplate-taxonomy-category-recipes
Category: Videotaxonomy-category-video.htmlpagetemplate-taxonomy-category-video
Tag Archivestaxonomy-post_tag.htmlpagetemplate-taxonomy-post_tag
Tag: Featuredtaxonomy-post_tag-featured.htmlpagetemplate-taxonomy-post_tag-featured

The category and tag templates are listed in customTemplates without post types, so they are offered for pages. Assign them where you want that archive-style layout.

WooCommerce Templates

TemplateFilePost typesPatternNotes
Archive: Productarchive-product.htmlproducttemplate-archive-product
Single item: Productsingle-product.htmlproducttemplate-single-product
Single Product: Landingsingle-product-landing.htmlproducttemplate-single-product-landing
Product Search Resultsproduct-search-results.htmlproducttemplate-search-product
Search: Productsearch-product.htmlproducttemplate-search-product
Taxonomy Product Categorytaxonomy-product_cat.htmlproducttemplate-taxonomy-product_cat
Taxonomy Product Tagtaxonomy-product_tag.htmlproducttemplate-taxonomy-product_tag
Product Attributetaxonomy-product_attribute.htmlproducttemplate-taxonomy-product_attribute
Product Category: Clothingtaxonomy-product_cat-clothing.htmlproducttemplate-taxonomy-product_cat-clothing
Product Category: Digitaltaxonomy-product_cat-digital.htmlproducttemplate-taxonomy-product_cat-digital
Product Category: Outlettaxonomy-product_cat-outlet.htmlproducttemplate-taxonomy-product_cat-outlet
Page: Cartpage-cart.htmlpagetemplate-page-cart
Page: Checkoutpage-checkout.htmlpagetemplate-page-checkout
Page: Checkout Multi-Steppage-checkout-multi-step.htmlpagetemplate-page-checkout-multi-stepThree-step checkout: Shipping → Payment → Review.
Order Confirmationorder-confirmation.htmlpagetemplate-order-confirmation
Page: My Accountpage-my-account.htmlpagetemplate-page-my-account
Page: Wishlistpage-wishlist.htmlpagetemplate-page-wishlistNeeds WooCommerce, TI WooCommerce Wishlist, and Aegis Dash wishlist pattern.

Note

WooCommerce templates. Hidden from the Site Editor template picker when WooCommerce is inactive (framework Templates.php filter).

Note

Wishlist template. Requires WooCommerce, the Aegis Dash, and TI WooCommerce Wishlist. Hidden when TI Wishlist or WooCommerce is inactive. The Aegis Dash registers the template-page-wishlist pattern when dependencies are met. See WooCommerce Integration.

Template Structure

Standard Templates

Most templates follow this block structure:

Copied!
Directory tree
Template Part: Header (parts/header.html)└── Group (main wrapper) └── Content area (varies by template)Template Part: Footer (parts/footer.html)

Blank Template

The Blank template loads template-blank: the Skip to Content pattern and a <main> group with Post Content. No header or footer is included.

Template Hierarchy

WordPress selects templates in priority order. For Aegis:

Request TypeTemplate Priority
Front pagefront-page.html → page.html → index.html
Static pageCustom template → page.html → index.html
bbPress (integration on)Page block template (page / page.php hierarchy) → PHP theme-compat fallback
Single postsingle.html → index.html
Category archivecategory.html → archive.html → index.html (Aegis ships archive.html)
Author archiveauthor.html → archive.html → index.html
Date archivedate.html → archive.html → index.html
Searchsearch.html → index.html. Post type searches try search-aegis_doc.html first, for example search-product.html
404404.html → index.html
WooCommerce shoparchive-product.html → archive.html → index.html
WooCommerce productsingle-product.html → single.html → index.html

Assigning Templates to Pages

Assign a template from the page settings.

  1. Edit a page in the block editor.
  2. Open the Page tab in the right sidebar.
  3. Click the template name under Template.
  4. Select the desired template from the list.
  5. Update the page.

Editing Templates

  1. Navigate to Appearance → Editor → Templates.
  2. Select a template to edit.
  3. Modify the block structure.
  4. Save changes.

To revert a modified template to its original state:

  1. Select the template in the Site Editor.
  2. Click the Options menu (three dots).
  3. Select Clear customizations.