# 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, these are **Menus** at `/admin/`, with one file per language. In the Sanity edition, they are **Menus** in the Studio, under each language.

Each language has one menu file with three lists:

- `headerPrimary`: the top menu, its dropdowns, and its two mega menus
- `footer`: the link columns of the standard and corporate footers
- `footerLegal`: the small legal links at the bottom of the standard and corporate footers

Change every language's file when you change a link, so the languages stay in step. In every list, an item is shown unless it has `"enable": false`. For how the menu behaves, see [Navigation](../../features/navigation/).

<Aside type="note">
  The main homepage uses its own footer, with link columns in
  `src/content/sections/english/footer-newsletter-grid.md`. See
  [Footer](../footer/).
</Aside>

### Header Menu
Items appear in the order they are listed in the file. Top-level items have a `weight` number, but Consultiz doesn't sort by it, so move an item in the file to change its place. There are four kinds of item.

**1. A plain link**

```json
{ "enable": true, "name": "Contact", "weight": 5, "url": "/contact/" }
```

**2. A dropdown.** Set `"hasChildren": true` and list the links in `children`:

```json
{
  "enable": true,
  "name": "Who we are",
  "weight": 2,
  "hasChildren": true,
  "children": [
    { "enable": true, "name": "Company", "url": "/company/" },
    { "enable": true, "name": "Pricing Plan", "url": "/pricing/" }
  ]
}
```

**3. A flyout inside a dropdown.** A child with its own `"hasChildren": true` and `children` opens to the side, like **Solution** and **Industry** in the demo menu. It flips if there is no room. Nest as deep as you like.

**4. A mega menu.** Set `"hasMegaMenu": true` and list groups of links in `menus`. `cta` adds the photo pane, and `bar` adds the row along the bottom. The demo's **Practice area** has two groups and a `bar`. **Resources** has two groups, a `cta`, and a `bar`:

```json
{
  "enable": true,
  "name": "Resources",
  "weight": 4,
  "hasMegaMenu": true,
  "menus": [
    {
      "enable": true,
      "name": "Quick links",
      "children": [
        { "enable": true, "name": "Case study", "url": "/case-study/" }
      ]
    }
  ],
  "cta": {
    "enable": true,
    "eyebrow": "Report 2025",
    "image": "/images/corporate-consulting/about-section-report-img.webp",
    "title": "Business Growth & Advisory Report.",
    "button": { "enable": true, "label": "Read More", "url": "/contact/" }
  },
  "bar": {
    "enable": true,
    "text": "Sunday - Thursday | 9:00 AM - 6:00 PM",
    "label": "Get free consultation",
    "url": "/contact/"
  }
}
```

| Field         | What it does                                                                                   |
| ------------- | ---------------------------------------------------------------------------------------------- |
| `enable`      | `false` hides the item                                                                         |
| `name`        | The text shown                                                                                 |
| `weight`      | A position number. Keep it in step with the order in the file. It doesn't change the order     |
| `url`         | Where it goes: `/pricing/` for your pages (the language prefix is added for you), a file such as `/downloads/business-growth-report.pdf`, or a full `https://` address |
| `hasChildren` | `true` for a dropdown or a flyout                                                              |
| `children`    | The links inside a dropdown, a flyout, or a mega menu group                                    |
| `hasMegaMenu` | `true` for a mega menu                                                                         |
| `menus`       | The groups of links in a mega menu                                                             |
| `cta`, `bar`  | The photo pane and the bottom row of a mega menu. Each has its own `enable`                    |

On small screens the same items appear in the mobile menu. The one-page sites under `/landing/` use the same menu with no panels, and only the contact item is a link.

### The Demo Menus
The **Home** and **Who we are** menus link to every demo page and layout (three homepages, their one-page versions, two solution layouts, two industry layouts, and so on), so buyers can explore the theme. Most firms keep only the pages they use. **Who we are** also links to one sample detail page each, such as `/solutions/financial-strategy-advisory/` and `/industries/banking-financial-institutions/`; point them at your real pages.

The **Latest resources** group in the **Resources** mega menu names two posts in the menu file, so it doesn't update itself when you add a post.

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

```json
"footer": [
  {
    "label": "About",
    "list": [
      { "enable": true, "name": "Who we are?", "url": "/company/" },
      { "enable": true, "name": "Contact", "url": "/contact/" }
    ]
  }
]
```

A column with no visible links is hidden.

### Legal Links
`footerLegal` is a flat list:

```json
"footerLegal": [
  { "enable": true, "name": "Privacy Policy", "url": "/privacy-policy/" },
  { "enable": true, "name": "Cookie Settings", "url": "#cookie-settings" }
]
```

The **Cookie Settings** link (`#cookie-settings`) reopens the cookie preferences. It is hidden automatically when the cookie banner is off. The demo's **Support Policy** link is disabled because the theme has no such page.

### Translate A Menu
`menu.fr.json` and `menu.ar.json` have the same structure as `menu.en.json`. Keep the `url` values in English form (`/pricing/`); the language prefix (`/fr/`, `/ar/`) is added for you. Translate only `name`, `title`, `label`, and the other visible text.

### Do It With AI
```text
Trim my header menu to these pages: [LIST]. Edit headerPrimary in every src/config/menu.*.json file,
and keep the JSON structure. Items show in file order, so put them in the order I listed. Then run
npm run astro-check.
```