Customizing The Header
Files: src/config/config.toml, src/config/menu.<lang>.json, src/i18n/<lang>.json · Skill level: Beginner
The header holds these parts:
- Logo: update your site’s logo.
- Menu: edit the menus. For dropdowns, nested flyouts, mega menus, and keyboard support, see Navigation.
- Language switch: manage your languages.
- Navigation button: see below.
In the Tina edition, you edit these in Site settings, Menus, and Interface labels at /admin/. In the Sanity edition, you edit them in the same places in the Studio.
Customizing The Navigation Button
To show or edit the button in the header, open src/config/config.toml and find this section:
[settings.navigationButton] enable = true # Show or hide the button label = "" # Button text. Leave empty to use the text in each language file url = "/contact/" # Button linkUpdating The Button Label
The label is in each language file, so it can change with the language:
- Open
src/i18n/en.json, then the same file for each of your other languages, such assrc/i18n/fr.jsonandsrc/i18n/ar.json. - Find the
navigationgroup. - Change the
buttonLabelvalue.
"navigation": { "buttonLabel": "Get Started"}The button shows the label for the page’s language. On most themes, a value in label in config.toml replaces the text in every language, so leave it empty.