Install TemplateX#
Start with a local WordPress site.
- Install the plugin
Install and activate the TemplateX plugin like any other WordPress plugin. After activation, TemplateX adds its setup screens to the WordPress admin.
- Create a theme
Open TemplateX > Theme Setup.
The fastest path is Create New Theme. TemplateX creates a clean starter theme with the files WordPress needs and the folders TemplateX uses while you build.
- index.php
- style.css
- views
- css
- js
- assets
Activate the new theme under Appearance > Themes.
- Install packages
Open a terminal in the theme folder and install the theme packages:
npm installbun install - Start development
Run the development command from the theme folder:
npm run devbun run devKeep that command running while you build. TemplateX watches your theme files and updates the generated WordPress PHP as you work.
- Open the local docs
In the WordPress admin, open TemplateX > Documentation.
The WordPress docs browser is local to your development site. After you publish the theme, that local browser is hidden because the published theme is meant to run without TemplateX. The public docs site is exported separately from the plugin repository.