- This topic has 9 replies, 4 voices, and was last updated 4 years, 7 months ago by
Elvin.
-
AuthorPosts
-
March 21, 2021 at 5:52 pm #1704415
William
Hi there,
On my site, I see that on certain browser widths, the menu for ‘Support’ goes off the edge of the screen.

I use a little CSS for the box-shadow and border-radius, so I don’t think it’s that – is there a way to fix this?
Kind regards,
March 21, 2021 at 6:33 pm #1704429Leo
StaffCustomer SupportHi William,
Give this solution a shot:
https://docs.generatepress.com/article/navigation-dropdown/#opening-specific-sub-menus-to-the-leftMarch 22, 2021 at 4:45 am #1704794William
Thanks for that, seems to work! The only thing I would say is that it looks a bit strange for the drop downs to be so far to the left and not under the menu content – is this a limitation of the menu? I prefer it looking the way before and when the content goes off the screen, for it to start a new line if that makes sense?
March 22, 2021 at 7:11 am #1705177David
StaffCustomer SupportHi there,
Sub Menus are set to a width of 200px… if you want you can change that using this CSS:
@media(min-width: 1056px) { .main-navigation ul ul { width: 110px; /* Adjust width to suit */ } }March 22, 2021 at 1:09 pm #1705624William
Thanks for that – it was more that I liked the original look of the menu, but it seems a strange issue for the text to disappear off the side of the screen – is there not a way for this to not disappear but to start on a new line of the sub menu?
March 22, 2021 at 8:52 pm #1705895Elvin
StaffCustomer SupportThis issue with the original look is, there’s no way for the submenu to detect if it’s overflowing outside of the viewport through CSS.
This kind of thing requires JS as we’ll have to compute the distance between the right bounds of the submenu to the right edge of the viewport. It’s a pretty advanced front-end customization scripting.
March 23, 2021 at 11:22 am #1707004William
So is this a limitation of the menu with GP – that on certain widths the sub menu will be cut off?
March 23, 2021 at 4:12 pm #1707188Elvin
StaffCustomer SupportSo is this a limitation of the menu with GP – that on certain widths the sub menu will be cut off?
With the default, yes. Rarely do menus from any theme have this out-of-the-box.
Hence, make do with custom CSS. And in your case w/c is pretty specific, custom JS.
March 23, 2021 at 4:52 pm #1707216William
Okay that’s not a problem, CSS works well and I can live with it – thanks as always!
March 23, 2021 at 5:23 pm #1707242Elvin
StaffCustomer SupportNo problem. 😀
-
AuthorPosts
- You must be logged in to reply to this topic.