Opened 10 years ago
Last modified 3 weeks ago
#38982 new defect (bug)
Twenty Eleven: Navigation dropdown menus broken on android devices
| Reported by: | shireling | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Future Release |
| Component: | Bundled Theme | Version: | 4.6.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description (last modified by )
On a site running Twenty Eleven, tapping the top level menu item opens that page, rather than opening that item's child menu items and waiting for something to be selected.
This results in the child menu opening briefly, but being lost on the page load.
Issue isn't present on iOS or desktop devices, but I was able to reproduce in both Chrome and Firefox on an HTC M9 running android 6.0.
Originally reported here: https://en.forums.wordpress.com/topic/problem-with-drop-down-menu-when-using-2011-theme-on-mobile?replies=3
The issue happens on both of the sites mentioned, the self hosted and the one on WordPress.com.
Change History (7)
#2
@
10 years ago
- Description modified (diff)
- Keywords needs-patch added
- Milestone Awaiting Review → Future Release
- Priority normal → lowest
I can confirm the issue.
We'd likely have to fix this with some JavaScript, similar to what's been done in the newer default themes. Worth noting there isn't really a change in the menu on smaller screen sizes – it stays the same, so it should be straightforward. That said, given the age of the theme, this is a low priority.
#3
@
8 years ago
I have the same problem which I just noticed. Either the drop-down menu was working not long ago or I just never noticed it. I don't understand why this can't be fixed just because it's an older theme. The only thing old is the version number. It's still a nice theme. Unfortunately, this problem makes the theme unusable and I guess I will have to have a theme made for me and I will not use any of the stock WordPress themes anymore if support is discontinued down the road.
I just posted on the support forum:
https://wordpress.org/support/topic/bug-with-drop-down-menu-on-mobile/
#5
@
2 years ago
- Priority lowest → normal
I can confirm that this is still an issue. I am testing on Android 15, Chrome version 131.0.6778.81
#6
@
3 weeks ago
Thanks everyone for the work so far and the confirmation on this being an issue.
As noted this likely needs a small amount of scripting and the minimal approach would be for a first tap on a parent item to open its submenu and a second tap to follow the link, matching the current iOS behaviour.
If anyone would like to work on a patch please pick this up.
This ticket was mentioned in PR #15006 on WordPress/wordpress-develop by @rishabhwp.
3 weeks ago
#7
- Keywords has-patch added; needs-patch removed
On touch devices, tapping a parent item in Twenty Eleven's main menu opens its link right away, so the submenu can't be used. This happens mostly on Android. This PR adds a small script so the first tap on a menu item with a submenu opens it, and a second tap follows the link.
Testing instructions
- Activate Twenty Eleven and assign a primary menu with nested items (a parent with a child, and a child with its own child).
- On a touch device, tap a parent item: its submenu opens and the page doesn't change.
- Tap the same item again: its link opens.
- Check that nested submenus open, that tapping outside the menu closes them, and that after pressing Back the menu is closed.
I tested it on my Pixel phone (Android, Chrome) and on iOS Safari in the Simulator.
Use of AI Tools
AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Opus 5.5
Used for: Code Review
Just realized I put twenty ten in the description. That should say twenty eleven. ugh.