[Resolved] Drop-down menu doesn't work the same in 2.0.1

Home Forums Support [Resolved] Drop-down menu doesn't work the same in 2.0.1

Home Forums Support Drop-down menu doesn't work the same in 2.0.1

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #466948
    Daren

    Hi Tom and Leo,
    When I updated to 2.0.1 today my drop-down menu stopped working the way it used to. I had it just like you do here on your site for the Help drop down when you click (mine is on hover) and the top of the sub-menu is flush with the bottom of the header section. Only now when I hover it still appears as expected but when I move the cursor down to select a submenu item it disappears before I get there. I have since reverted back to 1.4 and it now works as before. What can I do to make it work in 2.0.1?

    Thanks,
    Daren

    #467015
    Leo
    Staff
    Customer Support

    Hi there,

    A bit hard to tell without seeing the issue live unfortunately.

    Can you give this CSS a shot? https://generatepress.com/forums/topic/hover-on-the-main-menu-does-not-work/#post-442646

    #467023
    Daren

    Should I update to 2.0.1 again and send a link?

    #467026
    Leo
    Staff
    Customer Support

    Yes if you can duplicate the issue on a staging site it will definitely help ๐Ÿ™‚

    Thanks!

    #467038
    Daren

    Here it is: http://holdtrade.darenjm.com/

    Thanks Leo

    #467172
    Tom
    Lead Developer
    Lead Developer

    Instead of using margin-top, try padding-top.

    .main-nav ul {
        padding-top: 18px;
    }
    #467173
    Daren

    Thanks Tom, I’ll give it a try.

    #467180
    Daren

    That was it. Why did margin work before the update and not after?

    #467181
    Tom
    Lead Developer
    Lead Developer

    The old menu used javascript and had a timer on it so the menu wouldn’t disappear for a half second after the mouse left the menu item. So actually if you were slow with your mouse, the same issue would have happened.

    The new menu uses pure CSS which has no such timer.

    #467188
    Daren

    So margin separated the ul creating a gap whereas padding does not.

    #467191
    Tom
    Lead Developer
    Lead Developer

    That’s right, margin is outside the element which causes blank space, whereas padding is inside the element.

    #467192
    Daren

    Thanks again Tom, appreciate the help on this.

    #467201
    Tom
    Lead Developer
    Lead Developer

    You’re welcome ๐Ÿ™‚

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