# Create a custom header

A custom header is a Header template you design in Elementor and assign to your pages with Display Conditions. When it applies to a page, it replaces the whole site header there, so you control the logo, menu, search and cart as ordinary Elementor widgets.

## Before you start

- **Jupiter X Core** and **Elementor** must be active. Without Elementor, Layout Builder shows "Layout Builder requires Elementor to be installed and activated." and the list is blurred.
- The **Shopping Cart** widget only exists when **WooCommerce** is active. Leave it out if you do not run a shop.
- You need an administrator account. Layout Builder actions require the `manage_options` capability.
- This article assumes Simplicity Mode is on, which is the default on new installs.

## Create and publish the header

:::steps
### Open the Header list

Go to **Jupiter X › Layout Builder › Header**. The list shows every header template with its **Title**, **Author**, **Display Conditions**, **Published date** and **Last modified**. A header with no Include conditions shows **No Instance**: it exists, but no page uses it.

![The Header list in Layout Builder with the Add New button highlighted](https://sample-help.artbees.net/media/1247310bde29cd9d727e03f38937cfb4cb578f0887beff7e70aad2d0267af80a.png "Jupiter X › Layout Builder › Header")

### Add a template

Click **Add New**. In the **Add New Template** dialog, type a **Template Name** (for example `Acme Studio Header`) and click **Create**. If you leave the name empty, Jupiter X names it `Elementor header #<ID>`.

Jupiter X creates the template as already published, with the **Full Width** page template, and opens it in Elementor in a new browser tab. The first time you open an empty template, Elementor's template library opens on top of the editor. Insert a design from it, or close it to start from scratch.

![The Add New Template dialog with the Create button highlighted](https://sample-help.artbees.net/media/354204a199098859821355239f8744f5a6c1db64534f4382d8ae86aacb53c249.png)

### Design the header in Elementor

Add a container with the widgets your header needs. The Jupiter X widgets are in the **Jupiter X Elements** group of the Elementor panel:

- **Site Logo**: turn on **Use Site's Logo** to show the logo set for your site, or leave it off and pick an image under **Choose Image** (you can set a different image per device). **Link** sets where the logo points; if you leave it empty, the logo links to your home page.
- **Advanced Menu**: add your links under **Menu Items**. Each item has an **Item Type** of **Menu** or **Sub Menu**. **Sub Menu** items appear in a dropdown under the **Menu** item above them.
- **Search Form**: a search box. The **Placeholder** text defaults to `Search...`.
- **Shopping Cart**: a cart icon with an optional **Cart Quick View**. It needs WooCommerce.

Each widget has its own reference article with every setting.

![The Elementor editor showing a header with logo, menu, search and cart, the Advanced Menu highlighted](https://sample-help.artbees.net/media/93ff7f1503087248e0714b42fad4140ce2bca6a46a842fe99308378b01388d2c.png "A header template in the Elementor editor")

### Open Display Conditions

In the Elementor top bar, click the arrow next to **Publish** and choose **Display Conditions**. The **Publish Settings** window opens with the question "Where do you want to display this template?".

This item only appears for templates opened from **Jupiter X › Layout Builder** (the editor address contains `layout-builder=true`). A template you open from Elementor's own **Templates** screen does not have it.

### Set where the header appears

Click **Add Condition**. A new row starts as **Include** › **Entire Site**, which shows the header on every page. Change the dropdowns if you want a narrower rule (see the table below), then click **Save & close**. This saves the conditions and the template.

If another header already uses the same rule, a red notice appears under the row. In the example below, **Header - Dark** already uses **Entire Site**.

![The Publish Settings window with an Include, Entire Site row highlighted and a conflict notice under it](https://sample-help.artbees.net/media/32db9bae307e26ab81a94dd3e03e07bd3960d9e2a80bee5fed3115d466cab3f3.png "Display Conditions for a header template")

### Check the result

Back in **Jupiter X › Layout Builder › Header**, reload the list. Your template now shows its rule in the **Display Conditions** column (for example **Entire website**). Open your site in a private window to see the header as visitors do.
:::

## Where a header can appear

Each condition row has up to four dropdowns. The first is **Include** or **Exclude**. The second is the scope:

| Scope               | What it matches                                                                              | Third dropdown                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| ------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Entire Site**     | Every page of the site                                                                       | None                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| **Archive**         | Archives, search results and the blog page (not WooCommerce pages)                           | **All Archives**, **Author Archive**, **Date Archive**, **Search Results**, **Post Archive( Blog )**, **In Category**, **In Category Children**, **In Post Tag**, plus archives of your custom post types and taxonomies                                                                                                                                                                                                                                                                                                               |
| **Singular**        | Single posts and pages, the front page, the blog page and the 404 page (not single products) | **All Singulars**, **Front Page**, **Not Found 404**, **By Author**, **Any Child Of**, **Direct Child Of**, a **post** group (**Post**, **In Category**, **In Category Children**, **In Post Tag**, **Post By Author**), a **page** group (**Pages**, **Page By Author**), an **attachment** group (**Media**, **Media By Author**), plus your custom post types                                                                                                                                                                       |
| **Woocommerce**     | WooCommerce pages                                                                            | **Entire Shop**, **Checkout Page**, **Cart Page**, **Empty Cart Page**, **Order Received Page**, **My Account Page**, **My Account Login Page**, a **Products Archive** group (**All Products Archive**, **Shop Page**, **Search Results**, **Products Categories**, **Products Tags**, **Products Brands**, **Products Attributes**) and a **Products** group (**Products**, **In Product Category**, **In Child Product categories**, **In Product Tags**, **In Product Brands**, **In Product Attributes**, **Products By Author**) |
| **User Attributes** | Who is viewing                                                                               | **All users**, **Not logged in as user**, and under **Logged in as user**: **All logged in users** plus one entry per user role                                                                                                                                                                                                                                                                                                                                                                                                        |
| **WPML**            | The current language (only listed when WPML is active)                                       | **Language**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |

For choices that point at specific content (a page, a post, a category, an author…) a fourth dropdown appears. It starts on **All**. Click it and type at least one character to search by title, ID, slug or URL, then pick a result. Click the **X** next to it to go back to **All**.

Rows where you leave the third dropdown on **Select One** are dropped when you save. **Entire Site** needs no third choice.

## How Jupiter X picks the header

- A template applies only when it is **published**. Drafts and trashed templates are ignored.
- A template applies to a page when at least one of its **Include** rows matches and none of its **Exclude** rows match. **Exclude** always wins within the same template.
- Include rows are OR-ed, never AND-ed. To show a header everywhere except one page, use **Include › Entire Site** plus an **Exclude** row for that page.
- When a header applies, it replaces the theme's whole header output, including the default navbar. Your design is the only header on the page.
- Header behavior (sticky, fixed, overlay) is covered in the header settings and the sticky and transparent header articles linked under Related.

:::warning Only one header can win, and the newest one does
There is no priority setting, and a narrower rule does not beat a wider one. If several published headers match the same page, Jupiter X shows the one that received its Display Conditions most recently. Editing or re-saving an older header does not move it ahead. So a new header set to **Entire Site** replaces every other header on the site, including headers you assigned to specific pages. Give the new header **Exclude** rows for those pages, or narrow its rules, so only one header matches each page.
:::

## Manage your headers

- Use the **All**, **Active**, **Inactive** and **Trash** filters above the list. **Active** headers have at least one Include condition; **Inactive** ones show **No Instance**.
- Each header has **Edit**, **Rename**, **Export** (downloads `<title>.json`) and **Move to Trash**. **Bulk Actions** offers **Move to Trash** and **Export** for several headers at once.
- **Import** adds headers from a `.json` file or a `.zip` of `.json` files. Imported headers are published right away and keep the Display Conditions saved in the file, so an imported header can replace your current one immediately. If unfiltered file uploads are off, Jupiter X first asks whether to **Enable and Import** or **Import Without Enabling**; without enabling, SVG and JSON files (including Lottie files) used in the template are not imported.
- In **Trash**, a header can be restored or deleted permanently. Moving a header to Trash removes it from your site; pages it covered fall back to the next matching header or the theme's default header.

## Troubleshooting

### My header shows "No Instance"

The template has no **Include** conditions. A template with only **Exclude** rows also shows **No Instance** and applies nowhere. Open it, choose **Display Conditions** from the arrow next to **Publish**, add an **Include** row and click **Save & close**.

### "JupiterX recognized that you have set this condition for other templates"

The red notice under a row means another header in the list already uses exactly the same rule; its title follows the colon. You can still save, but only the header that received its conditions most recently will show. Change one of the rules or add an **Exclude** row.

### The Display Conditions item is missing

Open the template from **Jupiter X › Layout Builder** (click its title or **Edit**) rather than from Elementor's **Templates** screen.

### My header does not show on a page

Check that the template is published and listed under **Active**. Then check whether another header also matches that page: the one that received its conditions most recently wins, even if its rule is wider.

### The Shopping Cart widget is not in the panel

WooCommerce is not active. Activate it and reload the editor.

:::faq
### Can I have different headers for different pages?

Yes. Create several header templates and give each its own conditions, for example one for **Singular › Pages** and one for **Woocommerce › Entire Shop**. Make sure no page matches more than one, or use **Exclude** rows on the wider one.

### Does the new header replace the old one right away?

Yes. As soon as the template is published and its conditions match, visitors see it. There is no separate activate step.

### How do I make a header for one page only?

Add **Include › Singular › Pages**, then use the fourth dropdown to search for the page and pick it. Click **Save & close**.

### How do I go back to the previous header?

Remove the condition rows from the new template and click **Save & close**, or move the new template to Trash.
:::

## Related

:::cards{cols=2}
- \[Header template settings]\(docs\:search?q=header template settings) icon=settings — The options that control header behavior.
- \[Create a sticky header]\(docs\:search?q=create a sticky header) icon=pin — Keep the header visible while visitors scroll.
- \[Create a transparent header]\(docs\:search?q=create a transparent header) icon=layers — Overlay the header on top of the page content.
- \[Set Display Conditions]\(docs\:search?q=set display conditions) icon=filter — Every condition, with examples.
- \[Advanced Menu]\(docs\:search?q=advanced menu) icon=menu — All settings of the menu widget.
:::
