creating menu with 3rd level nested elements #804
Joduai
started this conversation in
Show and tell
Replies: 2 comments 10 replies
-
Please check the menu.html.php, find this one:
I set the max depth to 2. Try to change that first before move to next step. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Seems we just need to change the depth, I already tested with twentysixteen theme. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As htmly allows to create a dynamic navigation menu with max 2nd lvl element nesting for dropdown menu purposes, according to issue #793 I provide a proof of concept allowing to get a 3rd lvl nested elements.
It's all about creating menu elements in menu editor with classes "first", "second", "third", and drag them in the right order.
You can download menu.json file that contains sample data, and upload it to /content/data directory.
You can simply add couple menu elements with classes first/second/third and drag&drop to arrange them.
Replacing file's content with
"[]"
or deleting menu elements in admin panel reverts back to default menu generation function.Below code generates only html menu based on unordered lists without any CSS for drop down purposes.
Use it layout.html.php file, or create a function inside functions.php inside your template file and invoke it in proper layout file.
Beta Was this translation helpful? Give feedback.
All reactions