In a Guide theme, there is one page template each for article, section, and category by default. You can create up to 100 additional page templates each for articles, sections, and categories.
This means that you can create alternate versions of templates to use for your articles, sections, and categories. You can change the look and feel based on content. You can apply or change the page template when you create or edit an article, section, or category.
Adding multiple templates using the theme editor
You can create additional page templates for articles, sections, and categories using the theme editor in Guide. If you prefer working on your themes locally, you can also add templates to your downloaded themes.
- In Guide, click the Customize design icon () in the sidebar.
Your themes appear on the Themes page.
- On the theme you want to edit, click Customize.
- Click Edit code.
- In the Files area, click Add new, then select the template that you want to
- Under Template for, select the type of template you'd like to create.
You can create article, section, and category templates only. You can create up 100 additional templates for each type.
- Enter a Template name.
- Under Start from, select an existing template to copy and use as a starting
You can select blank template if you don't want to start from another template.
- Click Create template.
The new template opens for you.
- Edit your template and click Save as you go.
- To preview your template, click Preview, then click Templates at the top
of the preview and select the template you want to preview.
For more information, see Previewing your theme while editing theme code.
Adding multiple templates in downloaded themes
If you download and work on themes locally, you can add multiple templates to the themes. The workflow consists of creating a predefined folder in a theme's templates folder, then adding .hbs template files to the folder.
To learn more about working on themes locally, see Working on a theme locally.
To add a template to an downloaded theme
- Depending on the type of template you want to add (article, section, or category),
create any of the following folders in the templates folder of the downloaded
As in the Guide theme editor, you can only create article, section, and category templates.
- Add an .hbs template file in the new folder.
You can name the file anything you want. The name must be 25 characters or less, and snake_case.Tip: To save time, copy an existing .hbs file into the folder to use as a starting point for the new template.
- Edit and save the template.
- If you need to add more templates of the same type, add them to the same folder.
- When you're done, zip the theme and import it into Guide.
Use Guide to preview the new template.