Menus and pages #136
Unanswered
marcelloinfoweb
asked this question in
Q&A
Replies: 2 comments
-
I ran into the same problem and couldn't find any code that should have done the menu expanding. I added this to the javascript in main.js, just above the comment: // set correct treeview to is-expanded, depending on the URL
if(path !== '/') {
// find the entry that contains the url as href
var $item = $(".treeview-item[href='" + url + "']")
.parents(".treeview").addClass("is-expanded")
} That did the job for me. I will now see if can find the time to see what this "pug" is all about, so I can make a pull request to add this. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@micksp Its showing an error path is not defined |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I create the pages and link in the new menu, it is neither expanded nor active.
How can I edit pages, rename menus, and rename pages to php?
How is it possible?
Thank you...
Beta Was this translation helpful? Give feedback.
All reactions