﻿# The Layout template for WebHelp

> [HTML Version](hm_advanced_htmltemplates_layout.html)

The layout template is usually the source code of the main index.html file for your WebHelp. It defines the traditional frameset (_Classic_ layout options for legacy WebHelp) or modern iFrames (_Integrated_ option) into which the topic and navigation pages are loaded. Basically it only provides the external framework and tells the browser which files to load into which frames. This means that you should not normally have any reason to edit it. 

If you choose the _No Frames_ option this template is not used at all. Then, the [table of contents](hm_advanced_htmltemplates_toc.md) page is used as the main index.html file.

This template is highly specialized and should only be edited if you have advanced HTML editing skills. It is essential for the proper functioning of the entire navigation system in WebHelp and editing errors you make here can easily make your help unusable. 

See [Editing HTML templates](hm_advanced_htmltemplates_editing.md) for details on how to edit templates and [Script and CSS components for experts](hm_advanced_htmltemplates_scripts.md) for more details on the content of the template.

## Template location

Configuration > Publishing Options > WebHelp > Layout

## If you are using an HTML skin you must edit your templates and settings in the skin\!

Nowadays you will almost always [choose an HTML skin](hm_working_configoutput_skins.md) to publish your project to WebHelp or HTML Help/CHM. A skin is a special kind of Help+Manual project without topics that only stores your HTML templates and all the settings relevant for HTML output to these two formats. When you choose a skin, the templates and settings in the skin completely replace those in your project.

Normally, a skin is pre-designed and you don't need to change anything. However, if you do want to change something, you must do all your editing in the **.hmskin** skin file. Editing in your Help+Manual project won't have any effect because those templates and settings are not used.

To edit a skin, make a copy of the **.hmskin** skin file in your project folder and then open it in Help+Manual by selecting **.hmskin** as the file type to open in the Open dialog. All the templates and settings are in the same places as in a normal Help+Manual project. 

Exception: HTML Export Options

The _HTML Export Options_ section is not stored in skins and needs to be edited in your project.

See also:

[Editing HTML templates](hm_advanced_htmltemplates_editing.md)

[HTML template variables](hm_ref_variables_html.md)

[HTML template output conditions](hm_ref_variables_conditions.md)

[Variables](hm_advanced_htmltemplates_variables.md)

[Conditional output](hm_advanced_htmltemplates_conditions.md)

[Script and CSS components for experts](hm_advanced_htmltemplates_scripts.md)