Documentation

Child theme

A child theme is a small extra theme that uses Sanctoria underneath. WordPress loads your CSS and PHP from the child, and everything else from Sanctoria. You only need one if you want to add your own code files that should survive theme updates.

On these pages

Note

You do not need a child theme to change colours, fonts, layouts, the header or the footer. Those live in the Customizer, Header & Footer, or Elementor, and are kept when Sanctoria is updated.

One-click generator

In Sanctoria > Child Theme, give the child a name and optionally a screenshot, then choose “Create and activate child theme”. Companion creates the folder, switches the site to the child, and copies your Customizer settings, menus and widgets so the site looks the same as before. The form is limited to users who can switch themes, and it uses WordPress’s filesystem API with a nonce check.

Ready-made zip

The same screen can download the official Sanctoria Child zip (also shipped as sanctoria-child-1.0.0.zip). Install it under Appearance > Themes > Add New > Upload Theme, then activate it. The first time that starter is activated, it copies Customizer settings, the logo and menu locations from Sanctoria.

Where to put your changes

  • CSS: at the bottom of the child’s style.css, or in Appearance > Customize > Additional CSS for small tweaks.
  • PHP: at the bottom of the child’s functions.php.
  • Template changes: copy a file from the Sanctoria theme folder into the child and edit the copy.

These pages describe Sanctoria theme 0.6.2, Companion 0.11.0 and Companion Pro 0.10.1.