- This topic has 19 replies, 4 voices, and was last updated 3 years, 8 months ago by Tom.
-
AuthorPosts
-
June 18, 2020 at 3:04 pm #1333342Mark
Hi, if you test the Simple Mega Menu (a GP CSS creation), it seems to have a bug on tablets (real tablets, not a tablet as simulated by DevTools). Check out my site on a tablet. The menus come down, then persist even when you hit the next parent menu item, leading to overlaid menus. Messy.
Is there a way to stop this?
It works fine on desktop, btw.
Edit: does not work fine on any platform, see below.
June 18, 2020 at 7:27 pm #1333450LeoStaffCustomer SupportHi there,
Sorry I’m not sure what you meany by real tablets?
I just used the Chrome simulator and not seeing anything obvious.
Can you provide a screenshot by any chance? You can use a service like this:
https://postimages.org/Let me know 🙂
June 19, 2020 at 1:12 am #1333664MarkSorry I’m not sure what you meany by real tablets?
Er, I mean a real tablet, not a simulator.
I’ve outlined the overlap. This occurs after tapping the parent menus consecutively. The menus are not clearing when the next menu item is tapped. It’s almost as if they are going into a ‘hover’ state and staying that way. CSS needs to make ‘display: none’ (or something) for all other menu items when a parent item is clicked. I suppose you’d need javascript for that ….
June 19, 2020 at 1:24 am #1333677MarkWhoa!
I’ve recreated this bug on the desktop by clicking the parent item to open the submenu, then going to HOVER over another parent item. You then have screen with overlapping menus. Try it.
I think this is why the real Mega Menu uses JS to work properly
Can I fix this by forcing a hamburger off canvas menu onto tablets? If so, how?
June 19, 2020 at 4:22 am #1333877DavidStaffCustomer SupportHi there,
yeah it is a known bug, which we are looking at solutions for – and yes it us where a JS method works best.
You can increase the Mobile Menu Breakpoint in Customizer > Layout > Primary Navigation.
June 19, 2020 at 5:08 am #1333924MarkThanks David, set the breakpoint to 1000px and now I get a hamburger on the tablet in portrait mode at least.
Can’t decide whether to stay with the buggy menu, which is kinda good enough but not very professional, or lard up my site with a jQuery-heavy menu solution.
What would you do?
June 19, 2020 at 8:11 am #1334228DavidStaffCustomer SupportPersonally i would limit the use of a Mega Menu only where it is truly required – but then i am old and easily disoriented with too many choices lol
If the Mega Menu is super important then i would go for a Plugin.
June 19, 2020 at 10:10 am #1334399MarkHey David, I’m over 60 myself, a COBOL programmer from the 1970s, so I know the feeling.
Your comment sparked an idea though. What about doing something unusual, like having just a simple one level menu of a couple of items as the primary menu, and hiding the numerous choices (which we have to have somewhere) on an off-canvas hamburger, even on desktop?
As described here:
https://generatepress.com/forums/topic/thoughts-on-creating-this-custom-header/This overcomes the flaws of Simple Mega Menu by not displaying them, cleans up the interface, and avoids a jQuery menu.
No?
June 19, 2020 at 5:45 pm #1334852MarkAnyhoo, I went ahead and made a small (2 item), single-level primary menu for on-canvas display, and put the large parent→child menu off canvas on desktop, tablet and mobile. Seems to be a solution to this bug, of sorts.
Even better would be for the team at GP to write a little vanilla JS to make the “Simple Mega Menu” work properly. How about it guys?
I’ll mark this as “resolved” although there are issues here that need attention …..
June 20, 2020 at 4:02 am #1335154DavidStaffCustomer SupportAwesome – great idea
The issue with sub menus staying open should be resolved in GeneratePress 2.5 🙂June 20, 2020 at 4:08 am #1335162MarkThanks Dave, I’ll keep an eye out for that
June 20, 2020 at 5:41 am #1335231DavidStaffCustomer SupportYou’re welcome
June 21, 2020 at 7:36 pm #1336831MarkThe issue with sub menus staying open should be resolved in GeneratePress 2.5
David, do you have any notion of when there will be new releases of GP and GP Premium?
June 22, 2020 at 3:20 am #1337128DavidStaffCustomer SupportI would reckon Alpha/Beta would be the beginning of July. It’s quite a significant update so will require a healthy testing phase
You can grab the latest JS from the 2.5 release here if you want:
https://github.com/tomusborne/generatepress/tree/release/2.5.0/assets/js
June 23, 2020 at 3:22 pm #1339471MarkThanks for the info, David. I look forward to the new software from GP. (I’ll leave the JS until then, just in case it does not sync with the old front end.)
-
AuthorPosts
- You must be logged in to reply to this topic.