- This topic has 9 replies, 2 voices, and was last updated 7 years, 5 months ago by Tom.
-
AuthorPosts
-
October 25, 2016 at 5:07 am #238659mapsarska
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…
October 25, 2016 at 10:26 am #238754TomLead DeveloperLead DeveloperHi 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 π
October 25, 2016 at 11:19 pm #238898mapsarskaHello 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 ?October 25, 2016 at 11:27 pm #238900TomLead DeveloperLead DeveloperThere 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”.
October 25, 2016 at 11:38 pm #238906mapsarskaI 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?
October 26, 2016 at 9:03 am #239065TomLead DeveloperLead DeveloperUsing 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
October 26, 2016 at 11:24 pm #239250mapsarskaDear 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/S4VootTfCxBBTW. Thx for pointing screencast, great program i will be using now π
October 26, 2016 at 11:42 pm #239257TomLead DeveloperLead DeveloperAh I see, you copied the code from your email which turns the quotes into funky characters.
Try copying the code directly from this topic π
October 27, 2016 at 12:04 am #239259mapsarskaOMG, i’m so stupid π
Made 10000 now and works like a charm thanks a lot…
October 27, 2016 at 12:06 am #239260TomLead DeveloperLead DeveloperNot at all – it happens!
Glad it’s working now π
-
AuthorPosts
- You must be logged in to reply to this topic.