# Menus

## Menus

**Files:** `src/config/menu.en.json`, `src/config/menu.fr.json`, `src/config/menu.ar.json` · **Skill level:** Beginner

In the Tina edition, edit menus under **Menus** in `/admin/`. In the Sanity edition, edit them under your language, then **Menus**, in the Studio.

Each language has one menu file with two lists: `headerPrimary` (the top menu and its panels) and `footer` (the link columns). Change every language's file when you change a link, so the menus stay in step. For how the panel behaves, the keyboard, and every field, see [Navigation](../../features/navigation/).

### Header Menu
Kivo shows header items in the order they have in the file. It keeps a `weight` on each item but doesn't sort by it, so move an item in the file to move it on the page.

There are three kinds of item:

**1. A plain link**

```json
{ "enable": true, "name": "Pricing", "url": "/pricing/", "weight": 4 }
```

**2. A dropdown.** Set `"hasChildren": true` and list the links in `children`. A child with its own `"hasChildren": true` and `children` opens a flyout. The **Company** menu goes four levels deep:

```json
{
  "enable": true,
  "name": "Company",
  "hasChildren": true,
  "weight": 5,
  "children": [
    { "enable": true, "name": "About", "url": "/about/" }
  ]
}
```

**3. A mega menu.** Set `"hasMegaMenu": true` and list groups of links in `menus`. A first group with an empty `name` shows as featured links with icons and descriptions, and named groups show as columns. `cta` adds a photo card, and `bar` adds a row along the bottom, though the shipped menus use neither:

```json
{
  "enable": true,
  "name": "Product",
  "hasMegaMenu": true,
  "weight": 1,
  "menus": [
    {
      "enable": true,
      "name": "",
      "children": [
        {
          "enable": true,
          "name": "Platform overview",
          "url": "/services/",
          "description": "Everything you need to ship and scale",
          "icon": "Layers"
        }
      ]
    }
  ]
}
```

| Field         | What it does                                                                                   |
| ------------- | ---------------------------------------------------------------------------------------------- |
| `enable`      | **Required in the header.** `true` shows the item, `false` hides it                           |
| `name`        | The text shown                                                                                 |
| `url`         | Where it goes: `/pricing/` for your pages (the language prefix is added for you) or a full `https://` address |
| `hasChildren`, `children` | A dropdown and the links inside it                                                 |
| `hasMegaMenu`, `menus` | A mega menu and its groups of links                                                   |
| `description` | A short line under a featured link                                                             |
| `icon`        | Any [Lucide icon](https://lucide.dev/icons/) name, such as `"Rocket"` or `"Building2"`         |

<Aside type="caution">
  In the header, an item without `"enable": true` is hidden. Copy an existing
  item when you add one, so you don't forget it.
</Aside>

On small screens the same items appear in the mobile menu, with each panel's links listed under its name. The `simple` header layout shows only the top level: a dropdown or mega menu becomes one link to its first link.

### The Demo "Pages" Menu
The last header item, **Pages**, is a mega menu that links to every page template so you can explore the theme. Most sites hide it by setting `"enable": false` on that item.

Several demo links point to `#` (Guides, Webinars, Glossary, Partners, Brand assets). Point them at real pages or set them to `"enable": false` before you launch.

### Footer Menu
`footer` is a list of columns. Each column has a `label` and a `list` of links:

```json
"footer": [
  {
    "label": "Company",
    "list": [
      { "enable": true, "name": "About", "url": "/about/" },
      { "enable": true, "name": "Careers", "url": "/careers/" }
    ]
  }
]
```

- In the footer, links are shown unless `"enable": false`. A column with no visible links is hidden.
- Kivo ships six columns: Product, Services, Developers, Resources, Company, and Legal.
- The `default` and `large` footers show every column. The `minimal` footer shows only the **last** column, so keep your legal links last.
- The **Cookie settings** link uses `"url": "#cookie-settings"`, which reopens the cookie preferences. Disable it if you turn the cookie banner off.

### Do It With AI
```text
Update the menus in each src/config/menu.<lang>.json file. headerPrimary: [Product (mega menu: ...),
Pricing, Docs (https://docs.example.com), Company (dropdown: About, Careers, Contact)]. Hide the
"Pages" menu. footer columns: [Product, Resources, Company, Legal], with Legal last. Use Lucide icon
names, keep "enable": true on every visible header item, and translate the names for each language.
```