Local Jungle Custom Header Nav
Set up a custom navigation the LJ way.
by Local Jungle · github.com/craigstob/lj-custom-header-navigation
★ 1stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/craigstob/lj-custom-header-navigation/archive/refs/heads/main.zipCustom Navigation
Setup
Get Menu Navigation
This plugin uses a full site editor (FSE) menu block.
- Create a menu in the editor
- Put the menu into a page or header or some place momentarily via the gutenberg menu block
- In the upper right of the screen hit the three vertical dots and click 'Code editor'
- Look for 'wp:navigation' and you will see 'ref' it will look something like
wp:navigation {"ref":4,...
This shows the id you will use in the shortcode next.
Menu Shortcode
- Go to your page or post
- Put this shorctode on the page
[theme-menu id=x] - In the shortcode above you would replace 'x' with your navigation id (ex. 4)
Hamburger Toggle Shortcode
The menu needs a toggle action so you have to put the following shortcode in the header some place
[lj-menu-toggle]
Note
- Any customization to styles should be made in this plugin
- Customizations are likely and based on your header setup