This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Sub Menus
Andrew Blane edited this page Apr 24, 2018
·
6 revisions
Each sub-menu has a panel containing a header, a description, optional primary and secondary buttons, and any number of links.
To configure a sub-menu:
- In Screen Options, check "CSS Classes" option.
- Go to WordPress dashboard > Appearance > Menus and select the main menu you want to add to.
- Add a custom link with no url to the top level of the selected menu. This will be the link to the submenu.
- Add a custom link as a child of the one added above with no url, a CSS class of
subnav-header
, and a Navigation Label containing the title you want displayed. - Add another custom link as above, but this time with a CSS class of
subnav-description
, and a Navigation Label containing the description you want displayed. - Optionally, add another custom link as above, but this time with a CSS class of
subnav-button--primary
, and a Navigation Label containing the button text you want displayed, and also add the url you want the button to go to. - Optionally, add another custom link as above, but this time with a CSS class of
subnav-button--secondary
, and a Navigation Label containing the button text you want displayed, and also add the url you want the button to go to.
To add links to the submenu:
- Create a new menu (for example called
submenu01
) containing the links you require. - In your main menu, add a custom link with a CSS class of
subnav-menu
and a Navigation Label containing the name of the menu you created in the previous step (submenu01
in this example).