Site logo

[Resolved] Make desktop dropdown behave like mobile dropdown and go downwards

Home Forums Support [Resolved] Make desktop dropdown behave like mobile dropdown and go downwards

Home Forums Support Make desktop dropdown behave like mobile dropdown and go downwards

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1546501
    Jordan

    Hello, I have a navigation item at the very end of the menu with 2nd and 3rd level dropdown menus. Is it possible to make this menu item open the dropdown downwards instead of it going left or right (so only this menu item behaves like the mobile dropdowns)?

    #1546798
    Leo
    Staff
    Customer Support

    Hi there,

    Any chance you can link us to the site in question?

    You can use the private information field.

    Let me know 🙂

    #1546965
    Jordan

    I sent some info in the Private information form field. Nothing has notified me if the message was sucessfullly sent or not however.

    #1547912
    Leo
    Staff
    Customer Support

    Sorry I don’t see the info.

    Can you make sure it’s added here with your next reply?
    https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information

    #1552910
    Jordan

    I’ve posted some info in the Private information section below.

    #1553136
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    It’s possible, but it can be clunky/bad UX:

    .dropdown-hover .main-navigation:not(.toggled) ul .open-left li:hover > ul {
        left: auto;
        right: auto;
        position: relative;
    }
    #1562735
    Jordan

    Great, thanks for the code. It looks like that’s exactly what the client wanted.

    #1564187
    Tom
    Lead Developer
    Lead Developer

    Awesome, glad I could help 🙂

    #1580990
    Jordan

    Tom, so I’ve run into an issue with the code you provided. When I try to put the mouse on the very last menu item (underneath the toggled dropdown), the Contact Us link, the whole dropdown disappears and I can’t click on that last link anymore. Any suggestions on a fix?

    #1581607
    David
    Staff
    Customer Support

    Hi there,

    i don’t think theres a solution for that without bogging the site down with Javascript. I think thats what Tom meant when he said it can be a bad/clunky UX….

    #1582855
    Jordan

    David, that’s what I was also thinking. Looks like the best solution is to not put any links below that specific dropdown.

    #1583042
    David
    Staff
    Customer Support

    Yep that would be a good fix 🙂

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