Adding Custom Pages

SiteX allows you to create custom static pages beyond the built-in content types. 

Creating a Custom Page

From the admin panel:

  1. Navigate to Pages → Add New
  2. Enter the page title
  3. Set the URL slug (e.g., about for /about)
  4. Write the page content using the editor
  5. Choose a page template (default, full-width, or sidebar)
  6. Configure SEO meta fields
  7. Publish

Page Templates

TemplateDescription
DefaultStandard page with header, content area, and footer
Full WidthContent spans the full viewport width
With SidebarContent area with a right sidebar for widgets
Landing PageMinimal header/footer, optimized for conversions

Custom Page Templates

You can create your own page templates by adding PHP files to your theme:

themes/default/pages/
├── page.php           (default template)
├── page-fullwidth.php
├── page-sidebar.php
├── page-landing.php
└── page-custom.php    (your custom template)

Register the template in theme.json:

{
    "page_templates": {
        "custom": "My Custom Layout"
    }
}

Adding PHP Logic

For pages that need dynamic functionality (e.g., a calculator, a form, a data-driven page), you can create a custom controller and route. See the developer section in the SiteX source code for examples.