Mai theme has 3 built-in menu locations, though you can put menus virtually anywhere with the Navigation Menu widget or our [mai_menu] shortcode. By the time you are reading this, WP core may have already added the Navigation Menu block as well.
The following menu locations are available in all Mai Themes. The names themselves should be self-explanatory for where they show up on your site.
- Header Left
- Header Right
- After Header
Adding a Menu to a Default Menu Location
Navigate to one of the following 2 places, depending which is more comfortable to you:
- Customizer > Menus or Dashboard > Appearance > Menus
- Click ‘create a new menu’ if you want a new one, or choose/edit an existing menu.
- Add/edit menu items via the available options on the left.
- Scroll below the menu, and set the menu to display in location you want.
Adding a Menu to Template Parts
It’s very easy to add a menu to any widget area in Mai Theme.
1. Navigation Menu Block (Coming Soon)
Navigation Menu block is pretty stable, but currently only available in the Gutenberg feature plugin.
It’s simple enough to add a Navigation Menu block to any available template part. This is a simple and easy to do solution that works for many template parts, including Before Header, Sidebar, Before Footer, Footer, and even in Site Credits.
2. Mai Menu Shortcode
If you are using Reusable Blocks to build high-quality layouts in your widget areas, it’s easy to add our [mai_menu] shortcode via a Shortcode block. This allows you to put a menu inside columns, before or after specific blocks and content, and display vertical or horizontal menu items.