> For the complete documentation index, see [llms.txt](https://docs.kaliumtheme.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kaliumtheme.com/template-parts/settings/type.md).

# Type

The six types, and why this setting decides all the others.

At the top of the panel, you'll see the **Type** dropdown. This defines the kind of Template Part you're working on, and it is the most important setting on the panel: **it decides which other settings appear below it.**

* **Section** – Used to inject content into hook locations across the site.
* **Header** – Replaces the default site header.
* **Footer** – Replaces the default footer.
* **Page** – Replaces entire pages like 404, search results, or archives.
* **Popup** – Opens over the page when a trigger you choose fires.
* **Snippet** – Runs a piece of PHP, CSS or JavaScript instead of showing content.

<figure><img src="https://2905187046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1O25QgF7NUwiK2Ek4ro8%2Fuploads%2Fgit-blob-9312eeb65e05c4664c454cb2522beca5b49a865a%2Ftype.jpg?alt=media" alt="" width="278"><figcaption></figcaption></figure>

{% hint style="info" %}
Creating a Template Part from one of the tabs at the top of the **Kalium -> Template Parts** screen sets the Type for you. Starting from the **Footers** tab creates a Footer, and so on.
{% endhint %}

***

### Adding to a page, or replacing part of it

The six types divide into two groups, and knowing which is which saves a lot of confusion later.

**Sections and Popups add to a page.** The page renders as normal and your content is placed into it, a banner after the header, a notice above the checkout button, a popup over the top. Nothing is taken away.

**Headers, Footers and Pages replace.** Where one of these applies, it takes the place of what was there. A Header template part replaces the header from **Appearance -> Customize -> Header** on the pages it matches, and the Customizer settings no longer apply there.

**Snippets do neither**\
They run code rather than showing content.

***

### What changes when you switch Type

| Type        | Settings that appear                                                           |
| ----------- | ------------------------------------------------------------------------------ |
| **Section** | Display Conditions, Placement, Container Settings                              |
| **Header**  | Display Conditions, Container Settings, Header Settings                        |
| **Footer**  | Display Conditions, Container Settings, Footer Settings                        |
| **Page**    | Display Conditions, Page Settings                                              |
| **Popup**   | Display Conditions, Popup Settings, Popup Triggers                             |
| **Snippet** | Snippet Type, Execution Scope, Execute Conditions, Placement, Snippet Settings |

**Header Settings** and **Footer Settings** depend on **Wrap with Container** being on in Container Settings, because the wrapper is what carries them.

**Placement** (the setting that says where on the page something goes) only exists for **Sections** and **Snippets**. The other types already know where they belong: a Header goes where the header goes.

***

### Changing the Type later

You can change the Type at any time, and the settings below update immediately. Your content is kept.

The one exception is **Snippet**. Because a Snippet holds a single locked code block rather than normal content, switching a part to or from Snippet asks you to confirm first, the content is replaced, not converted.

{% hint style="warning" %}
Changing Type can make a part stop appearing. A part that worked as a Section may show nothing as a Page until you set a condition that matches a real page. If something disappears after a Type change, the conditions are the first place to look.
{% endhint %}

***

### Where each type is covered

{% content-ref url="/pages/VCftI0anq9G8DY5VVWIj" %}
[Creating a Section](/template-parts/creating-template-parts/creating-a-section.md)
{% endcontent-ref %}

{% content-ref url="/pages/kqHluCr1EgeJqvCExznv" %}
[Replace the Header](/template-parts/creating-template-parts/replace-the-header.md)
{% endcontent-ref %}

{% content-ref url="/pages/kqoZnD8RIbXm1x0ghMvc" %}
[Replace the Footer](/template-parts/creating-template-parts/replace-the-footer.md)
{% endcontent-ref %}

{% content-ref url="/pages/6pUqyV7vsR1RCDGYzEpo" %}
[Replace a Page](/template-parts/creating-template-parts/replace-a-page.md)
{% endcontent-ref %}

{% content-ref url="/pages/ATSVPgv4Mnk1efpQ71qp" %}
[Popups](/template-parts/creating-template-parts/popups.md)
{% endcontent-ref %}

{% content-ref url="/pages/eH3odFVAjVe0zKkqyV37" %}
[Code Snippets](/template-parts/creating-template-parts/code-snippets.md)
{% endcontent-ref %}
