[wp-trac] [WordPress Trac] #31237: improve get_the_archive_title() with new filter
WordPress Trac
noreply at wordpress.org
Mon Sep 21 10:40:58 UTC 2015
#31237: improve get_the_archive_title() with new filter
-------------------------+------------------------------
Reporter: ramiy | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: 4.1
Severity: normal | Resolution:
Keywords: | Focuses: template
-------------------------+------------------------------
Comment (by BinaryMoon):
I'm coming at this from the point of view of a theme developer who sells
themes. My users do not (generally) modify themes. Many of the themes I
sell are on wordpress.com. As such - if I chose to use the toggle - it
will affect everyone.
I chose the span entirely because it's not semantic. I didn't want to add
semantic meaning unnecessarily. It doesn't have to be a span.
As for accessibility - I would argue that hiding the span with css is more
accessible since it gives context to what is normally the page title. If
you hide the prefix with css then users with screenreaders will more
easily be able to tell what page they are on. I assume this is the reason
for the prefix in the first place. Not printing it to the page at all
removes this context.
Note - I don't use screen readers so don't know if there's other ways of
getting the same info :)
How would existing users be able to hide the prefix with css if there's no
span (or other element) to target the prefix?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31237#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list