[wp-trac] [WordPress Trac] #62311: "Skip to content" should have an ID

WordPress Trac noreply at wordpress.org
Wed Jan 8 10:57:16 UTC 2025


#62311: "Skip to content" should have an ID
------------------------------+----------------------------
 Reporter:  philliproth       |       Owner:  joedolson
     Type:  enhancement       |      Status:  closed
 Priority:  normal            |   Milestone:  6.8
Component:  Themes            |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:  accessibility
------------------------------+----------------------------

Comment (by philliproth):

 Replying to [comment:13 dilip2615]:
 > The message is asking to modify block themes so that the "skip link" (a
 link allowing users to jump directly to the main content, especially
 useful for keyboard navigation) targets an element with the ID `wp-skip-
 link`. This ensures that block themes use a standardized target, improving
 accessibility and providing consistency across themes. It essentially
 means the theme should include an element with `id="wp-skip-link"` at the
 top of the page for this purpose.Replying to [comment:1 audrasjb]:
 > > Hello and thanks for the ticket,
 > >
 > > Could you please detail where exactly this anchor is missing? Is it
 related to a specific theme?

 The skip link is inserted automatically when a <main> is present on a page
 and doesn't rely on a theme. This works properly. This ticket asks for an
 id inserted in the skip link for when you want a "back to top"-link
 inserted by a user, so that they have a focusable target to go back up.
 It's been solved and on the route for 6.8:

 https://core.trac.wordpress.org/changeset/59559

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62311#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list