> For the complete documentation index, see [llms.txt](https://docs.yaycommerce.com/yaymail/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yaycommerce.com/yaymail/how-it-works/global-header-and-footer.md).

# Global Header and Footer

The **Global Header & Footer** section in YayMail allows you to design and manage a unified header and footer layout for all your email templates. Instead of editing each template individually, you can now apply consistent branding elements—such as your logo, contact information, or social media links—across all emails from a single place. This feature helps you save time and ensures a cohesive look and feel throughout your email communications.

<figure><img src="/files/9wC4GLCFzjAHbVk64C4X" alt=""><figcaption></figcaption></figure>

In addition to the drag-and-drop elements, we’ve also introduced a set of ready-made **patterns** to help you build beautiful headers and footers quickly and effortlessly. Learn more at [Pre-Designed Patterns](https://docs.yaycommerce.com/yaymail/how-it-works/left-area-of-the-editor-screen)

<figure><img src="/files/SoeFX0aWB4wUTceaVlk0" alt=""><figcaption></figcaption></figure>

#### Enabling the Global Header & Footer for Templates

Once you’ve finished designing your Global header and footer, enabling them is all it takes to apply them across all your email templates. They will be automatically inserted into each template without requiring additional setup.

<figure><img src="/files/urVC5xQCVUb9sjHF7C9r" alt=""><figcaption></figcaption></figure>

**Note:**\
For websites that previously used YayMail version **below 4.1**, templates that already included the legacy **Global Header** or **Global Footer** elements will automatically display the Global header/footer after upgrading to version **4.1 or higher**.

However, for templates that did **not** previously use these legacy elements, the Global header/footer will be **hidden by default**. They will appear as shown in the image below.

<figure><img src="/files/XMyX00FWobmf5FZUvSSD" alt=""><figcaption></figcaption></figure>

To activate them, simply **disable** the option: Hide on this template

<figure><img src="/files/PSa3HLNXCFdq7hEAt5a2" alt=""><figcaption></figcaption></figure>

Additionally, if you wish to **customize** the content of the global header/footer specifically for a template, you can enable the option: Override content

<figure><img src="/files/lCc76tQH20rDHKulNmdK" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.yaycommerce.com/yaymail/how-it-works/global-header-and-footer.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
