Skip to content
New: Customize your theme with an AI assistant. Read the guide

Customizing Menus

Files: src/config/menu.<lang>.json · Skill level: Beginner

In the Tina edition, you edit these under Menus at /admin/, one per language. In the Sanity edition, the files don’t exist: open Content, your language, Menus in the Studio, then Header menu, Footer 1 links, or Footer 2 links.

Taxo navigation lives in one file per language:

  • src/config/menu.en.json
  • src/config/menu.fr.json
  • src/config/menu.ar.json

These files control:

  • the main desktop navigation
  • nested dropdowns
  • the mega menu
  • the mobile offcanvas navigation
  • both footer menu rows

For how the menu behaves on screen, keyboard support, and every field, see Navigation.

Main Header Menu

Taxo uses the headerPrimary array:

{
"headerPrimary": [
{
"enable": true,
"name": "Home",
"weight": 0,
"url": "/"
},
{
"enable": true,
"name": "Mega Menu",
"weight": 1,
"hasMegaMenu": true
}
]
}

Enabled items are filtered at runtime, so enable: false cleanly removes the item from header layouts and the mobile offcanvas menu.

Taxo shows header items in the order they appear in the file. It doesn’t sort them by weight, so to move an item, move it in the file. In the Tina edition, the Order field doesn’t move an item either: move its row in the list. In the Sanity edition, do the same with the rows in Header menu.

Nested Dropdowns

Regular dropdowns use hasChildren plus a children array. A child can have its own hasChildren and children, which opens to the side:

{
"enable": true,
"name": "Pages",
"weight": 2,
"hasChildren": true,
"children": [
{
"enable": true,
"name": "About Us",
"url": "/about/"
}
]
}

Mega Menu

The mega menu is driven by:

  • menus: grouped columns
  • children: links inside each column
  • cta: the large promo block
  • bar: the row along the bottom
{
"hasMegaMenu": true,
"menus": [
{
"enable": true,
"name": "Core Services",
"children": [
{
"enable": true,
"name": "Web Platforms",
"description": "Marketing sites and CMS builds...",
"icon": "Monitor",
"url": "/services/",
"weight": 0
}
]
}
],
"cta": {
"enable": true,
"eyebrow": "Delivery Partner",
"image": "/images/case-studies/case-study-1.png",
"title": "Need a team that can design, build, and launch?",
"description": "Use the menu to explore service lines...",
"items": [
"Strategy, design, and engineering in one workflow"
],
"button": { "enable": true, "label": "Start a Project", "url": "/contact/" }
},
"bar": {
"enable": true,
"text": "Not sure which service fits?",
"label": "Talk to us",
"url": "/contact/"
}
}

Footer 1 uses footerPrimary, and Footer 2 uses footerSecondary:

{
"footerPrimary": [
{ "enable": true, "name": "About Us", "url": "/about/" }
],
"footerSecondary": [
{ "enable": true, "name": "About", "url": "/about/" }
]
}

The footer shows every link in its list, in file order. Setting enable to false doesn’t hide a footer link, so delete it to remove it.

Fast Menu Cleanup Before Launch

If a page is not ready yet, hide the header menu item first:

{
"enable": false,
"name": "404",
"url": "/404/"
}

That removes the link from navigation without changing the underlying route.

  • enable: show or hide a header item
  • name: visible label
  • url: link target
  • weight: a position number. Taxo doesn’t sort by it, so keep it in step with the file order
  • hasChildren: nested dropdown
  • hasMegaMenu: full-width mega menu
  • description: a short line on a mega menu link. Taxo’s menu doesn’t show it, so you can leave it out
  • icon: icon name for mega menu links, shown in the mobile menu
  • badge: optional badge next to an item

Important Taxo Detail

Menu labels are not pulled from the i18n files. If multilingual mode is enabled, update the menu file of every language.

Type something to search...