# Headers & Footers

![](https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2F3uNrDVWEUywasM3DxBnD%2Fheader%20footer.png?alt=media\&token=bc6afd4c-c633-435e-82db-bbc57b94e14a)

### Edit Page Headers & Footers

To edit page **headers**, click "Edit Headers" at the top of the template body.

<figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2Fdrdclku39WsUeBVRCcFa%2FCaptura%20de%20Tela%202025-07-01%20a%CC%80s%2010.27.17.png?alt=media&#x26;token=6bcaa48a-6787-4d06-8d6c-f7abb5bb55b3" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FGyva88NxQ3dPKcqk8oEw%2FCaptura%20de%20Tela%202025-07-01%20a%CC%80s%2010.32.08.png?alt=media&#x26;token=c53bff59-4800-44ea-8a85-dd2272e33045" alt=""><figcaption></figcaption></figure>

And to edit page **footers**, click "Edit Footers" at the bottom of the template body.

<figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FWO2zuiTqeAak8iEuZwji%2FCaptura%20de%20Tela%202025-07-01%20a%CC%80s%2010.24.34.png?alt=media&#x26;token=a88f3f80-7d58-4a73-afc6-a834198ca004" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FCE6RLDRDOtU2CmgTvpOT%2FCaptura%20de%20Tela%202025-07-01%20a%CC%80s%2010.33.03.png?alt=media&#x26;token=17b8b00b-ee26-4ee5-837e-3c2b489a62c6" alt=""><figcaption></figcaption></figure>

### Aligning Content

We recommend using a table to control the layout and alignment of content in your header/footer. This allows you to control the vertical and horizontal alignment of your content.

{% embed url="<https://youtu.be/JEU6HxRJ4U4?si=rORWF79FRwrM6g3d>" %}

<figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FKTCVFeUQmLehVMvHXjqP%2FCaptura%20de%20Tela%202025-07-01%20a%CC%80s%2010.45.52.png?alt=media&#x26;token=254187fc-8ebb-4d96-9b1b-2477e04918e4" alt=""><figcaption></figcaption></figure>

![](https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FptK92G7ctfp3Fy9KQxfh%2FCaptura%20de%20Tela%202025-07-01%20a%CC%80s%2010.53.27.png?alt=media\&token=c0639842-ec20-46b4-9ba1-d97439889457)

![](https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FnV76pqRqbYZZATa1ET0Q%2FCaptura%20de%20Tela%202025-07-01%20a%CC%80s%2010.54.22.png?alt=media\&token=1e19b670-99da-408c-9941-822a1ab088eb)

### Variables

You can add variables to headers and footers the same way as the template body.

![](https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2F1Pc5C6zVjTP4XSdTekYL%2FCaptura%20de%20Tela%202025-07-01%20a%CC%80s%2014.25.24.png?alt=media\&token=c8c8cfd1-a5d4-4e7d-bf6f-7a81ce755f07)

{% embed url="<https://youtu.be/lI_WEB3LUDU?si=b5Nrj5q0g842o9sz>" %}

### Tokens

If you are using tokens, it's also possible to add dynamic value from a them. The syntax is similar to the variable format. Say you have this token **`Company Name`**, the variable you can add to the header/footer would look like this **`{{[Company Name]}}`**.

<figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FZvRqiGl9KMfRWsydIPF8%2FCaptura%20de%20Tela%202025-07-01%20a%CC%80s%2014.49.21.png?alt=media&#x26;token=87dcec60-1b49-4ad2-9cf6-156d112b67ad" alt=""><figcaption></figcaption></figure>

### Page Numbers

To add page numbers, you will first need to add an HTML element to the header or footer, then add  `<span class="pageNumber"></span>` for the current page number or `<span class="totalPages"></span>` for the total number of pages.

{% embed url="<https://www.youtube.com/watch?index=18&list=PLYXyDMkKKoW1F5-4pUgq9GDwECBqMTzdw&v=q0FwS1nPKN4>" %}

{% hint style="info" %}
To align text, add the HTML element in a table and edit the table and cell properties to the desired outcome.&#x20;
{% endhint %}

![](https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FlDpm0rBqjgVbXy82r1hG%2FCaptura%20de%20Tela%202025-07-01%20a%CC%80s%2015.04.15.png?alt=media\&token=85e0f778-10fe-4ff7-8b64-1c0eba350595)

![](https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FDILaxU4a6xacydzQle36%2FCaptura%20de%20Tela%202025-07-01%20a%CC%80s%2015.36.20.png?alt=media\&token=c4c7f748-b27a-4b03-b3b7-b4cc9ad90dd5)

![](https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2Fz9Gjys2iooGUEWpniYv0%2FCaptura%20de%20Tela%202025-07-01%20a%CC%80s%2015.40.23.png?alt=media\&token=b5dc3a79-a5c9-4e2d-9463-dca057847315)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.documint.me/templates/document-structure-and-layout/headers-and-footers.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
