studiopress / genesis-sample

This is the sample theme created for the Genesis Framework.
https://demo.studiopress.com/genesis-sample/
530 stars 283 forks source link

Submenu position #261

Open mmjaeger opened 5 years ago

mmjaeger commented 5 years ago

Hello the child theme is placing the menu into the header aligning it to the right.

when hovering over one of the last two main menu items that both have sub-menus, especially the submenu of the last menu item shows off screen - I guess it is position to the left - ideally there would be some js function that would take care of it and position it to the right if the submenu is offscreen.

Screen Shot 2019-06-07 at 2 47 01 PM
seothemes commented 5 years ago

This issue should probably be moved to the Genesis repo since the Superfish menu script is not handled by the child theme - unless it can be done with some simple CSS.

Found this article about potential fixes https://stackoverflow.com/questions/13980122/superfish-menu-display-subitems-left-if-there-is-not-enough-screenspace-on-the

ghost commented 4 years ago

a quick fix using CSS.

.genesis-nav-menu .menu-item:last-child .sub-menu {
    right: 0;
}

@nickcernis maybe you should turn the dropdown menu into a mega menu. or style it better