Side panel with custom menu – child items cause collapsible?

  • danbailan

    #9924

    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

    Admin

    Syahir Hakim

    #44911

    Can 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.

    danbailan

    #44912

    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

    Admin

    Syahir Hakim

    #44913

    Try 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.

    danbailan

    #44914

    Hi Syahir,

    tried that and it stopped the sidepanel all together – not there at all

    Thanks

    Admin

    Syahir Hakim

    #44915

    Make 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?

    danbailan

    #44916

    Hi Syahir,

    that works – great – I hadn’t done as above but tried it all again and great.

    I am going to add a request idea too over in requests on this menu too

    Cheers

Viewing 7 posts - 1 through 7 (of 7 total)

  • You must be logged in to reply to this topic.