---
url: https://docs.artemsemkin.com/velum/wp/header-menus/sticky-header.md
description: >-
  Make the header sticky (fixed at the top), hide it on scroll down and show it
  again on scroll up, give it other colors and a background while it sticks, and
  stop it from covering the top of your content.
---

# Making the header sticky or hiding it on scroll

Whether the header stays on screen, hides or scrolls away is a setting of the header template's outermost container. Open the header from a page as shown in [Customizing the header](./customizing-the-header#editing-the-header), then use the steps below.

## Choosing how the header behaves on scroll

**Header template → outermost container → Layout → Create Header → On Scroll**

![On Scroll sits under Position in Create Header](https://docs.artemsemkin.com/velum/wp/images/header-menus/sticky-header-1.png)

#### ▶️ Step 1.

In the open header template, click the outermost **Container** in **Structure** and stay on the **Layout** tab.

#### ▶️ Step 2.

In **Create Header**, choose a value for **On Scroll**.

* **None:** the header scrolls away with the page.
* **Sticky:** the header stays on screen once the visitor scrolls past it.
* **Sticky & Auto-Hide:** the header stays, hides while the visitor scrolls down and comes back as soon as they scroll up.

#### ▶️ Step 3.

With **Sticky & Auto-Hide**, **Reveal Offset** sets how far the visitor scrolls past the sticky point before the header starts to hide: **Viewport Height**, **Header Height** or **Custom**.

#### ▶️ Step 4.

Click **Publish**.

![Publish sits at the top right of the editor and turns active after your first change](https://docs.artemsemkin.com/velum/wp/images/footer/customizing-the-footer-4.png)

## Giving the sticky header other colors

**Header template → outermost container → Layout → Create Header → Sticky Colors**

The colors of the header's logo, menu and buttons can change while it sticks, for example light text on a dark bar.

![Each row pairs a Global Color with the color to use while the header sticks](https://docs.artemsemkin.com/velum/wp/images/header-menus/sticky-header-2.png)

#### ▶️ Step 1.

Under **Sticky Colors**, click **Add Item** below **Recolor While Sticky**.

#### ▶️ Step 2.

Choose a **Global Color** and set **Color While Sticky**. Every part of the header that uses that global color from Site Settings takes the new color while the header sticks. A color typed directly into a widget does not change.

For the header's own background, open the **Style** tab of the same container. In **Background**, the settings under **Sticky Header Styles** apply only while the header sticks.

![The sticky background settings follow the heading Sticky Header Styles](https://docs.artemsemkin.com/velum/wp/images/header-menus/sticky-header-3.png)

## My content sits under the header

**Header template → outermost container → Layout → Create Header → Position**

With **Position** set to **Top**, the header floats over the page, so the first section starts behind it. Choose **Default** instead and the header takes its own space above the content.
