[Resolved] leaving menu droped down until user action

Home Forums Support [Resolved] leaving menu droped down until user action

Home Forums Support leaving menu droped down until user action

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #238659
    mapsarska

    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…

    #238754
    Tom
    Lead Developer
    Lead Developer

    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 πŸ™‚

    #238898
    mapsarska

    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 ?

    #238900
    Tom
    Lead Developer
    Lead Developer

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

    #238906
    mapsarska

    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?

    #239065
    Tom
    Lead Developer
    Lead Developer

    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

    #239250
    mapsarska

    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 πŸ™‚

    #239257
    Tom
    Lead Developer
    Lead Developer

    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 πŸ™‚

    #239259
    mapsarska

    OMG, i’m so stupid πŸ™‚

    Made 10000 now and works like a charm thanks a lot…

    #239260
    Tom
    Lead Developer
    Lead Developer

    Not at all – it happens!

    Glad it’s working now πŸ™‚

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.