SEO

Enable SEO

Enable SEO when the theme should own document titles, descriptions, and social metadata.

Admin Setting#

Open TemplateX > Settings > Extensions and enable SEO.

Then rebuild the theme so the generated runtime includes the SEO hooks:

bash
npm run build

Config File#

The setting is stored in the active theme's template-x.config.json:

jsontemplate-x.config.json
{  "seo": {    "enabled": true,    "titlePattern": "%title% | %site%",    "descriptionField": "seo_description",    "titleField": "seo_title",    "imageField": "seo_image",    "fallbackExcerpt": true  }}

Disabling the module removes the SEO hook registrations from the compiled development runtime when that file is writable.

Rebuild before publishing so the standalone theme exactly matches the saved setting.