[wp-trac] [WordPress Trac] #51072: Add action hook after theme skip links

WordPress Trac noreply at wordpress.org
Fri Aug 21 19:00:13 UTC 2020


#51072: Add action hook after theme skip links
-----------------------------+------------------------------------------
 Reporter:  alexstine        |       Owner:  (none)
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Themes           |     Version:  5.5
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:  ui, accessibility, template
-----------------------------+------------------------------------------

Comment (by joyously):

 I just want to bring up the case where there is nothing to skip, as far as
 the theme knows. But plugins could add something at any of the early
 action hooks and the theme wouldn't know that.
 For instance, my theme has an option to not output the header on any page.
 So in that case, no skip link is output because there is nothing to skip.
 But a plugin could be used to do Mega Menu or something to replace the
 header and so a skip link would be needed, but the theme isn't involved at
 that point.
 So if it was standardized to output skip links at `wp_body_open`, you
 would still need coordination to know whether to output it and what target
 to skip to.

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


More information about the wp-trac mailing list