[Resolved] PC: hover – Mobile: press menu item

Home Forums Support [Resolved] PC: hover – Mobile: press menu item

Home Forums Support PC: hover – Mobile: press menu item

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #2295932
    detanatar

    How to implement such functionality?
    1) in the desktop version, the submenu opens when you hover over the menu item
    2) in the mobile version, the submenu expands when clicking on the menu item (not on the icon)
    ———–
    WordPress theme GeneratePress implemented like this
    PC: hover – Mob: icon tap
    or
    PC: press menu item – Mobile: press menu item
    necessary
    PC: hover – Mobile: press menu item

    #2296018
    David
    Staff
    Customer Support

    Hi there,

    try adding this CSS:

    @media(max-width: 768px) {
        .main-navigation.toggled .menu-item-has-children .dropdown-menu-toggle {
            position: absolute;
            left: 0;
            right: 0;
            text-align: right;
        }
    }
    #2296038
    detanatar

    I have pasted your code
    set menu settings – hover
    nothing changed

    #2296041
    detanatar

    sent the site

    #2296046
    David
    Staff
    Customer Support

    Oops. I made a mistake in the CSS, please use the code above now:

    https://generatepress.com/forums/topic/pc-hover-mobile-press-menu-item/#post-2296018

    #2296059
    detanatar

    Wonderful.
    Thank you.
    Everything is working

    #2296069
    David
    Staff
    Customer Support

    Glad to hear that!

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