---
url: https://docs.artemsemkin.com/velum/html/content/header-and-footer.md
description: >-
  Pick a header design, change its colours and height, and change or remove the
  footer.
---

# Header and footer

Each page carries its own header and footer, so a page can have the header that suits its first picture and the footer that suits its end. The header is the `<header>` at the top of the page's body, the footer the `<footer>` after its `<main>`.

## How to access

**Any page → `<header data-arts-ajax-region="header">`** and **`<footer data-arts-ajax-region="footer">`**

![The light header of Casa Notte over its dark first section: logo, link and burger in white](https://docs.artemsemkin.com/velum/html/images/content/header-and-footer-1.png)

## Which pages carry which header

The headers differ by the classes on their `<div class="arts-header-values js-arts-header-values">` and by what their bar holds besides the logo and the burger menu:

| Header | Its classes | Pages |
| --- | --- | --- |
| Dark text | none | 404, Contacts / Light, Works / 4 Columns, List, Pagination and Lightbox, and the projects that open on a light section |
| Light text | `velum-header_light` | Home, Curtain Slider, Horizontal Scroll, Contacts, Works / Dark, and the projects that open on a dark picture |
| Work categories in the bar | none | Works, its pages and category pages, Studio, Landing Page, Contacts / Classic |
| Blog categories in the bar | `velum-header_stone` | The posts and the Journal's category pages; the Journal itself adds `velum-header_light` |
| The whole menu in the bar | none | Classic Menu / 01 and / 02 |

To give a page another page's header, copy that page's whole `<header>…</header>` over its own, then move the menu's current mark back to this page's item: [Menus](./menus).

## Switching a header to light or dark

A light header has white text and shows the light logo at the top of the page, for a page that opens with a dark picture. Add `velum-header_light` and set the logo to `secondary`:

```html
<div class="arts-header-values js-arts-header-values velum-header_light" data-arts-header-reveal-offset="100vh">
  <div
    class="arts-header js-arts-header"
    data-arts-header-options='{"sticky":{"reveal":true}}'
    data-arts-header-non-sticky-logo="secondary"
```

For a dark header, remove the class and set `primary`. The bar that comes back as the visitor scrolls up is dark on every page, with the light logo. `data-arts-header-reveal-offset` is how far the page scrolls before the bar hides on the way down and comes back on the way up.

## Changing the header's colours

**HTML/css/variables.css**

```css
--velum-color-header-text: var(--velum-color-dark);
--velum-color-header-text-hover: var(--velum-color-dark-soft);
```

These are the dark header's text and burger lines, and their colour under the pointer. Write a colour (`#8a5a44`) or another variable of the file in their place. The light header keeps white.

## Changing the header's height

**HTML/css/custom.css**

The header's height is its logo plus the space above and below it, which grows with the window up to 80 pixels each. Set your own:

```css
.arts-header-values {
  --arts-header-padding-top: 16px;
  --arts-header-padding-bottom: 16px;
}
```

The space that keeps a page's first section below the header follows it. The logo's own height: [Logo and site icon](./logo-and-site-icon).

## Stopping the next project's visit

A project ends with the next project instead of the site footer: its title over its picture, which opens the next project once the visitor scrolls to its end.

To keep it but make it wait for a click on its title or its arrow, add `posts-navigation-next__track_no-scroll-commit` to its track:

```html
<div class="posts-navigation-next__track arts-scene js-posts-navigation-next__track posts-navigation-next__track_no-scroll-commit">
```

To end the project with the site footer instead, replace the project's whole `<footer>…</footer>` with the one from `studio.html`, and remove the current mark from its Sitemap: `current-menu-item`, `dot-list__item_current` and `aria-current="page"` on the Studio item. Which project leads to which: [Add a project](../pages/add-a-project).

## Changing the site footer

The site footer is the same on the 40 pages that have it, but for the item its Sitemap marks current. Its contact details and copyright line are changed in every page at once: [Edit every page at once](../get-started/edit-every-page-at-once). Home, Curtain Slider, Horizontal Scroll and the two Contacts pages have no footer.

Next: [Colours and schemes](../look/colours-and-schemes).
