tefra/navgoco

Sub-sub menu issue

Closed this issue · 10 comments

hello,
I found Navgoco useful; but when I click on the sub menus to
collapse the sub-sub menu items; they has disappeared fast.
I checked and manipulated the codes so much; but nothing happened! :(
hope you can help me...
thanks in advance;
Regards.

try increasing the slide.duration option, default is 400ms

        $('.nav').navgoco({
              slide: {
                  duration: 400,
              }
          });

It seems I couldn't explain the issue so good!
your solution just change the time of duration of the slides.But I want they don't disappear and display constantly.

You mean you want to see the slide effect on page load ?

just like the sub menu items; which they stand constantly after collapsing(when click on the main menu items).
But the sub-sub menu items disappears automatic without my click.
maybe you would like to see my code for better understanding the issue?!

I still don't see where is the bug, accordion mode works that way all non relevant sub-menus collapse and only the current tree remains open.

Yes please post some code, maybe something is lost in translation...

I want to use navgoco on a WordPress menu plug-in. So, the nested list are presented by wp_nav_menu() function.
as I experienced, the issue is not relate to the CSS.
when I use navgoco like this:

jQuery('#mydiv ul').navgoco({
caret: '',
accordion: false,
openClass: 'open',
save: true,
cookie: {
name: 'navgoco',
expires: false,
path: '/'
},
slide: {
duration: 400,
easing: 'swing'
}

      });

the main menu items and the sub menus items are OK.
But, when I replace(or use both) the first line of the code to this one: jQuery('#mydiv ul ul').navgoco({
the issue about the sub-sub menu items would be right; whereas the main menu items wouldn't be right.

Thanks again for the replies.

You only need to initialize it once for the whole tree, it will take care of all the sub-menus no matter how deep they are.

Can you please post the html markup here https://gist.github.com/

As I wrote before; the menu HTML list contents created by the wp_nav_menu() function.
However, I have posted the HTML markup here.

I have a really hard time understanding what's the issue, maybe try taking some screenshots???

No, taking the screenshots, can't be useful.
Any way; thanks for the replies :)
Best Regards.