Home › Forums › Graphene Mobile Neo › Support
Side panel with custom menu – child items cause collapsible?
-
Hi
Noticed a weird thing today – custom menu (with parent page and children idented) widget in sidepanel.
Looks great , testing it out. Go to the child pages, press on the menu item and links all good. Want to return to parent page when on a child page, so click on that (the top item in the menu) and its behaviour has changed. the click does not take me to the page but instead the click causes the menu to collapse jquery style? Click again and it expands. The menu link for the parent page is not active?
No problem as I can just have the menu items and not indent as children but made me curious as to why?
Many thanks
AdminCan you add a child in one of the menu item in your slide-out panel so that we can take a look further? So far I can’t reproduce the behaviour from my side.
Ok,
I have made the three menu items in the sidepanel custom menu here parent and 2 children
First time of using no problem , click on a child and it opens the page. Return to the side panel to use the menu again, click on the parent to return to that and then the menu becomes a collapse/expand affair, link back to parent no longer working.
Many thanks
AdminTry opening up the file
graphene-mobile-neo/js/gmneo.js
and make the following changes:Line 58:
- $('.menu > .menu-item-ancestor > a').click(function(){
+ $('#nav .menu > .menu-item-ancestor > a').click(function(){Line 73:
- $('.menu-wrapper').each(function(){
+ $('#nav .menu-wrapper').each(function(){Line 82:
- $('.menu-wrapper .menu .sub-menu').each(function(){
+ $('#nav .menu-wrapper .menu .sub-menu').each(function(){Let me know how that goes or if your need further assistance.
AdminMake sure you don’t include the
-
and+
. Those are there to indicate the line that needs to be modified. Also, which widget did you use to add those menu in the slide-out panel? What is the version of GM Neo on your site?
Viewing 7 posts - 1 through 7 (of 7 total)
- You must be logged in to reply to this topic.