Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #574550

    Hi.

    I had the problem that in landscape mode on my iPad the mega menu on my site did not close once tapped. I then found this code (link) and it solved that problem – almost, that is:

    If I stay on that page and use that menu again to go to another anchor on that same page, the menu stays open. Additionally, the burger menu that appears in portrait mode on iPad and in general on smartphones does not show the open mega menu, but just the main entry/parent.

    Is there a way to fix this?

    Thanks,
    Helge

    #575161

    Hi Helge!

    Thank you for using Enfold.

    That is the default behaviour of sub menus on mobile view. You have to tap again anywhere else to close the menu. If you need to show the mega menu items on mobile menu, go to the Enfold > Header > Mobile Menu then disable the “Hide Mobile Menu Submenu Items”.

    Cheers!
    Ismael

    #575303

    Hmm, I guess I did not explain well enough. The MegaMenu did not close ever. No matter where I tapped, it stayed open und blocked a large part of the screen. Since, this is obviously not a new problem, I found some code in that older thread that seemed to solve the problem: If I tapped a link in the MegaMenu that page is opened correctly and the menu disappears.

    However, if I then open the MegaMenu again to jump to a different spot on that same page, the menu stays open like before and blocks the screen. I can tap anywhere I want, it only closes if I tap on another entry of the main menu to go to another page. If that tap opens a drop down menu, then that menu stays open. I must go to another page to close the (mega)menu.

    “Hide Mobile Menu Submenu Items” is deactivated. You can see that because all other sub-entries are displayed, just not the MegaMenu. However, it gets a little more complicated: When I use the MegaMenu in landscape mode, then turn to portrait mode, the complete MegaMenu is shown in the mobile menu. If I then reload the page and open the mobile menu again, all the MegaMenu sub-entries are gone again.

    Long story short: Either I live with a broken MegaMenu that works only once and is not shown on the mobile menu, which is bad, or I have to turn the MegaMenu off and see how a regular drop down behaves. That, however, is probably worse, because in landscape mode on tablets and in general on PCs I lose a lot of clarity when it comes to how the menu items are structured.

    I really hope you can find a way to fix this – especially since it is nothing new. Unfortunately, though, I don’t know code. So I can’t experiment much with what I find on the forum beyond very minor changes. If you have any ideas, please “dumb them down” for me to work with them :-)

    Thanks,
    Helge

    #575650

    Hey there.

    I now know what happens: I just removed that code I mentioned because I wanted to test a regular drop down menu without any custom code. Before switching to drop down menu I once again tried the “tap somewhere else”-approach to close the mega menu. And suddenly it did close.

    The point is this: I use a boxed layout and you have to think – sorry ;-) – tap outside the box.

    If I tap the grunge background, the menu closes reliably. So please excuse the troubles, the theme does work as you intended. And now that I removed that code from functions.php the mega menu also appears on the mobile menu in all its sub-item-loaded glory.

    However, that UI behavior is not the least intuitive. Because no one would assume that there is a difference between tapping somewhere on the page (where there is obviously no link, of cause) and tapping the background to close a menu. And I don’t know what would happen if I had a stretched layout. Maybe something is still off with my site or maybe you can find a way to change that behavior on tablets in a future edition of Enfold. It sure would help a lot.

    Cheers,
    Helge

    #576998

    Hi!

    I tested the site and the mega menu works fine. Tapping outside the mega menu closes it. I don’t need to tap on the background in order to close the mega menu. Could you please test it again to confirm? On what mobile device are you testing this with?

    Best regards,
    Ismael

    #577367

    Hi.

    I have an iPad Air 2 running iOS 9.2.1 Here’s what I do:

    • open a new tab
    • go to the homepage
    • use the mega menu to go to a specific point (marked by color sections with developer IDs) on that other page – once I’m there, the menu closes
    • use the mega menu again to go to a different spot on the same page – once I’m there, the mega menu stays open and only close if I tap on the grey background

    I did this a couple of times, the behavior has never changed.

    Best regards,
    Helge

    #579404

    Hi!

    I followed the instructions and I was able to reproduce it, I can tap anywhere else other than the black background to close it, but this is not really a bug or an issue. It is how sub menus work on mobile devices. Also, adding anchor menus inside a drop down is not really good or common. I’ve seen a lot of websites but I’ve never seen anchor menus inside a dropdown or a select element because they are not intuitive. The anchor menus have to be immediately accessible in the main menu or a supporting menu. You can add a fullwidth submenu element to the page to act as an anchor navigation instead of the mega menu.

    Regards,
    Ismael

    #579460

    Hmm, I’m not sure I understand everything. You wrote

    I was able to reproduce it, I can tap anywhere else other than the black background to close it

    I think there is a “not” missing somewhere in your sentence: If you can reproduce it, it should not close if you tap on some piece of text, for instance. If, however, it closes not matter where you tap, then you don’t really reproduce my problem, because on my iPad it only closes, when I tap the black background. It does not close when I tap somewhere on the page, e.g. on some text or the white space between text and buttons. If you say that is normal, then I will live with it. It probably won’t be the way most people use the menu anyway as you said later.

    This brings me to your comment about anchors and menus: I think I understand you correctly when I assume that you would put the links to the anchors in a submenu. That way they are always accessible as long as I am on that page and can be used to navigate on that specific page. That does make sense.

    What I want to do, however, is give people access to all the content on the page “Schularten” from the moment, they open our homepage. That is why I use a mega menu and not a normal menu. They can immediately see everything. And by “all content/everything” I mean all the content that belongs to that page literally in terms of content and not only whether it is physically part of the page: The page “SGG” is a separate page physically, i.e. it has its own permalink. But content wise it is related to Schularten and therefore part of that menu item. I am simply giving visitors the choice to use the big buttons to go from the homepage to Schularten and then to Schulabschlüsse and then to a specific school or to go directly to a school like SGG depending on how much the already know. A submenu on the page Schularten does not offer that functionality, does it?

    So I guess I have to trade easy on-page navigation for easy across-pages navigation, which I am willing to do. I’m grateful for the advice about submenus, though, because I didn’t understand what they really where before. I’ll keep thinking about that…

    Thanks again for you help,
    Helge

    #580193

    Hi!

    I think you read this post directly from your email. I actually edited my previous post when I found a few missing words.

    I think there is a “not” missing somewhere in your sentence: If you can reproduce it, it should not close if you tap on some piece of text, for instance. If, however, it closes not matter where you tap, then you don’t really reproduce my problem, because on my iPad it only closes, when I tap the black background.

    Sorry about the grammar there. I meant to say that I can tap anywhere on the site other than the mega menu container itself in order to close the mega menu.

    This brings me to your comment about anchors and menus: I think I understand you correctly when I assume that you would put the links to the anchors in a submenu. That way they are always accessible as long as I am on that page and can be used to navigate on that specific page. That does make sense.

    I think it’s better if you disable the anchors inside the mega menu because anchor navigations should be accessible immediately. I hope that you consider the fullwidth sub menu solution.

    Best regards,
    Ismael

    #583334

    Thank you. You can close the thread :-)
    Helge

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Mega Menu on iPad’ is closed to new replies.