[Resolved] Automatically Open Submenus on the Left for Rightmost Menu Items

Home Forums Support [Resolved] Automatically Open Submenus on the Left for Rightmost Menu Items

Home Forums Support Automatically Open Submenus on the Left for Rightmost Menu Items

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1171878
    litesprint

    What the title says, because otherwise it cuts off parts of the submenu dropdown on most common resolutions.

    This is a manual solution (and didn’t work): https://docs.generatepress.com/article/navigation-dropdown/#opening-specific-sub-menus-to-the-left

    Was wondering if it can be done automatically like many other themes.

    #1172069
    Tom
    Lead Developer
    Lead Developer

    To do this automatically, it would require constant javascript listening, which isn’t good for performance at all.

    It’s much better performance-wise to use the manual method outlined in that article. Is the CSS still active on your site?

    #1186223
    litesprint

    It’s now working as intended with the CSS and the custom class.

    #1186514
    Tom
    Lead Developer
    Lead Developer

    Great to hear ๐Ÿ™‚

    #1280129
    litesprint

    Hi,

    After switching to SVG based icons from font icons, the icons for the right-most submenu items are changed. Didn’t change anything in the CSS. In other words, the arrow is now pointing towards the right instead of left.

    #1281256
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Give this a shot:

    .dropdown-hover .open-left .sub-menu .dropdown-menu-toggle .gp-icon svg {
        transform: rotate(90deg);
    }
    #1286089
    litesprint

    Perfect! Thanks Tom!

    #1286515
    Tom
    Lead Developer
    Lead Developer

    You’re welcome ๐Ÿ™‚

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