Introduction
You can create your own custom templates for cPanel's Site Publisher feature.
Create a template
To create an Site Publisher template, perform the following steps:
- Create your template's
meta.json
file. - Create your template files.
- Create a preview image for your template. You must save this image as the
preview.png
file. - Store the template in the appropriate directory on your cPanel & WHM server:
Site Publisher websites
When users publish websites via cPanel's Site Publisher interface (cPanel >> Home >> Domains >> Site Publisher), the system generates the website files and stores them in the target domain's home directory.
Each Site Publisher website uses the following assets:
- The configuration file.
- Template-specific license files, if the template includes a license.
- Template-specific generated website files, which may include HTML files, images, fonts, JavaScript files, CGI files, and related subdirectories for these assets.
The system does not publish the template's README
files or Template Toolkit files.