Archived topic
leaving menu droped down until user action
9 replies · Started by mapsarska on October 25, 2016
Hello Dear Tom,
I don't know if i have specified my problem in the topic clear for you.
On site i run i have very complex multilevel menu http://www.mar.sklep.pl It is under menu position "Nasza Oferta".
I receive our customers complains that menu roll up to fast after the mouse cursor by accident leave the this menu area.
I saw on other pages that there is a pssibility to leave the menu open until user clicks somewhere outside the menu or choose his menu position.
Can you please advise if this is possible, I don't know much about css and php, i thry to look in motive/navigation.php but i found nothing...
Hi there,
You can increase the delay by adding this code into the wp_footer hook in GP Hooks:
<script>
jQuery( window ).load( function() {
jQuery( '.sf-menu .menu-item-has-children' ).GenerateDropdownMenu.destroy();
jQuery( '.sf-menu .menu-item-has-children' ).GenerateDropdownMenu({
transition: 'slide',
transition_speed: 150,
open_delay: 300,
close_delay: 300
});
});
</script>
Just increase the close_delay value to whatever you need :)
Hello Thanks for fast reply,
Unfourtunatelly it,s not working for me.
i used:
open_delay: 100,
close_delay: 99999999,
i don't see it's working too much
Is there any way to leave the manu open until user click ?
There is a way, but it requires you to make it so you have to click to open it.
Go to "Customize > Layout > Primary Navigation" and set "Dropdown type" to "Click - Menu Item".
I will try but don't know if it will be ok, will keep You posted, and what is the max close_delay i can set up?, i don't see much difference between 1000 and i.e. 9999999. Am I maybe doing sth wrong?
Clicking is ok i like it, but there is a problem, submenus are opening downwards not on the right, can we fix it and make it look like before?
Using a value that high won't do anything, you're asking it to wait 9999.999 seconds which is most likely breaking it.
Try something more reasonable, like 3 seconds: http://screencast.com/t/gEUnJuxJqqX
Dear Tom,
Thanks for your help hovewer the Hook seems not be working for me. Please check the video i made with screencast like you.
http://screencast.com/t/S4VootTfCxB
BTW. Thx for pointing screencast, great program i will be using now :)
Ah I see, you copied the code from your email which turns the quotes into funky characters.
Try copying the code directly from this topic :)
OMG, i'm so stupid :)
Made 10000 now and works like a charm thanks a lot...
Not at all - it happens!
Glad it's working now :)