-
-
Notifications
You must be signed in to change notification settings - Fork 1
Customize the Header Links
Arpit Sheth edited this page Jul 30, 2020
·
1 revision
The header has links in two main components:
- HeaderNav — The top header bar that should contain just the most important links
- HeaderMenu — The toggle header menu that can contain as many links as you like!
- Create a directory to shadow the theme data if it doesn't exist yet
/src/@shetharp/gatsby-theme-polaroid/data/
- Create a file for
header-nav-items.ts
- Provide a list of
headerNavItems
- You can configure links to be internal (with a
slug
property) or external (with ahref
property) - You can also specify if a link should be visible on mobile, tablet, or laptop
- I recommend keeping this list short (no more than 5 links)
- You can configure links to be internal (with a
- Create a directory to shadow the theme data if it doesn't exist yet
/src/@shetharp/gatsby-theme-polaroid/data/
- Create a file for
header-menu-items.ts
- Provide a list of
headerMenuItems
- You can configure links to be internal (with a
slug
property) or external (with ahref
property) - You can also specify if a link should be visible on mobile, tablet, or laptop. If a link is already visible in the HeaderNavItems, I like to hide it in the HeaderMenuItems.
- You can configure links to be internal (with a