[wp-trac] [WordPress Trac] #48916: Twenty Twenty: anchor links don't work in mobile menu
WordPress Trac
noreply at wordpress.org
Mon Dec 9 05:13:55 UTC 2019
#48916: Twenty Twenty: anchor links don't work in mobile menu
--------------------------+-----------------------------
Reporter: Giorgio25b | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Menus | Version: 5.3
Severity: normal | Keywords: needs-patch
Focuses: javascript |
--------------------------+-----------------------------
I’m testing a scenario where there is only 1 single page and therefore the
main and mobile menu are structured on a #anchor-links structure:
#project, #about, #and-so-on
I did try to use the shortcut url structure /#project and also the full
domain path https://my-site.com/#project but there is nothing that is
actually triggering the mobile menu to close and reach that url; though
the url query changes in the browser without actually getting there.
This issue was reported and fixed on the Chaplin theme
[https://wordpress.org/support/topic/mobile-menu-doesnt-work-for-anchor-
links/#post-12134002] though despite the same code approach, Chaplin is
using jQuery while TwentyTwenty is plain JS.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48916>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list