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, open Menus at /admin/ and pick the language: Header Primary, Footer Primary, Footer Secondary, and Footer Privacy. In the Sanity edition, open your language in the Studio, then Menus: Header menu, Footer 1 links, Footer 2 links, and Legal links.

Techbyte manages navigation through one file per language: src/config/menu.en.json, menu.fr.json, and menu.ar.json. These files control the main header navigation, the mega menu, nested dropdowns, badges, and the footer link groups. For how the menu behaves, and the full list of fields, see Navigation.

Header Menu

The headerPrimary array defines the primary navigation. Items can be plain links, dropdowns (via hasChildren), or a mega menu (via hasMegaMenu). Dropdowns can nest as deep as you like. Pages is the example in the theme.

{
"headerPrimary": [
{
"enable": true,
"name": "Home",
"weight": 0,
"url": "/"
},
{
"name": "Pages",
"enable": true,
"weight": 2,
"hasChildren": true,
"children": [
{
"enable": true,
"name": "Home",
"weight": 0,
"hasChildren": true,
"children": [
{ "enable": true, "name": "Home 01", "weight": 0, "url": "/" },
{ "enable": true, "name": "Home 02", "weight": 1, "url": "/home-two/" }
]
},
{ "enable": true, "name": "About Us", "weight": 4, "url": "/about/" }
]
},
{
"enable": true,
"name": "Components",
"weight": 3,
"url": "/components/",
"badge": {
"enable": true,
"label": "New",
"color": "accent",
"type": "text"
}
}
]
}

The Order Of Items

Techbyte shows menu items in the order they are in the file. It doesn’t sort them by weight, so changing a weight doesn’t move an item. Move the item in the file instead. In the Tina edition, the Order field is this same weight, so it doesn’t move an item either.

The Case Studies Mega Menu

The Case Studies item ships as a mega menu: hasMegaMenu, a menus list of link groups, a cta photo card, and a bar row along the bottom.

{
"enable": true,
"name": "Case Studies",
"weight": 1,
"hasMegaMenu": true,
"menus": [
{
"enable": true,
"name": "Recent Projects",
"weight": 0,
"children": [
{
"enable": true,
"name": "Cloud analytics",
"description": "Dashboards, automated reporting, and secure cloud data pipelines for leadership teams.",
"icon": "ChartColumn",
"url": "/projects/custom-slug-projects-1/",
"weight": 0
}
]
}
],
"cta": {
"enable": true,
"eyebrow": "Case Studies",
"image": "/images/projects/project-1.png",
"title": "Proven Results Across Every Industry",
"description": "Discover how we've helped organizations like yours overcome challenges and achieve measurable success.",
"items": ["120+ engagements", "6 industries"],
"button": { "enable": true, "label": "Explore Case Studies", "url": "/projects/", "variant": "fill" }
},
"bar": {
"enable": true,
"text": "Not sure where to start?",
"label": "Talk to our team",
"url": "/contact/"
}
}
  • icon takes a Lucide icon name.
  • The cta object drives the photo card: eyebrow, image, title, description, the items list, and a button.
  • The figures in items are sample content. Replace them before you launch.

Techbyte’s footer links are split across three groups: footerPrimary (the Company menu in Footer 1), footerSecondary (the row of links in Footer 2), and footerPrivacy (the policy links in the copyright row of both). See Customizing Footer for details.

Configuration Options

  • name: Visible menu label.
  • url: Link target.
  • enable: Set to false to hide a header menu item. In the footer groups it has no effect, so delete the row instead.
  • weight: A position number. Techbyte doesn’t sort by it.
  • hasChildren: Enables a nested dropdown (children array).
  • hasMegaMenu: Enables the mega menu (menus array).
  • description, icon: Extra fields for mega menu links.
  • badge: Optional badge next to an item. Supports enable, label, color (primary, accent, info, warning, success, danger), and type (dot, or anything else for a label).
  • cta: The photo card inside the mega menu.
  • bar: The row along the bottom of the mega menu.

Adding New Menu Items

  1. Open each language’s file, such as src/config/menu.en.json.
  2. Find the group you want to extend: headerPrimary, footerPrimary, footerSecondary, or footerPrivacy.
  3. Add a new object with enable, name, url, and any optional fields such as hasChildren, children, or badge, at the position where you want it.

Disabling Header Menu Items

To hide an item in the header, set enable to false:

{
"enable": false,
"name": "Old Page",
"url": "/old-page/"
}

This removes it from the rendered navigation without deleting the config.

Do It With AI

Add a link called "[NAME]" to [URL] in the header menu, after "[ITEM]". Use the menu files in
src/config/, one for each language in src/config/language.json, and translate the name. Keep the same
item shape as the existing items. Techbyte shows items in file order, so put it at that position.
Then run npm run astro-check.
Type something to search...