[wp-meta] [Making WordPress.org] #1289: Accessibility of Read More Link in WordCamp Base Redux v2

Making WordPress.org noreply at wordpress.org
Sat Oct 3 08:24:24 UTC 2015


#1289: Accessibility of Read More Link in WordCamp Base Redux v2
------------------------+--------------------------
Reporter:  pixolin      |      Owner:
    Type:  enhancement  |     Status:  new
Priority:  normal       |  Component:  wordcamp.org
Keywords:  has-patch    |
------------------------+--------------------------
 Hello,

 to (slightly) improve a11y I would like to see some assistive text for
 screen readers added to '''WordCamp base theme Redux v2''':

 In {{{content.php}}} I added
 {{{
 the_title( '<span class="assistive-text">', '</span> ', false )
 }}}
 using the already existing class {{{.assistive-text}}}, which hides the
 title when the webpage is viewed in a browser.

 No changes were made in {{{content-page.php}}} or {{{content-
 single.php}}}, as the Read More Link isn't used when a post or page is
 viewed in a "single view".

 To  make read more links accessible in ''search results'' and ''archives''
 i also added
 {{{
 '<span class="assistive-text">' . get_the_title() . '</span> '
 }}}
 in function {{{twentyten_continue_reading_link}}}, used in file
 {{{lib/utils/twentyten-functions.php}}}.

 While the theme would need more changes to make it fully accessible (e.g.
 only using only one <h1> tag for every web page), I wanted to keep it
 backwards compatible to not break sites already using the theme. At least
 this patch may be a little improvement towards more a11y.

 The code basically reflects the
 [https://github.com/wpaccessibility/a11ythemepatterns/tree/master/read-
 more-links a11y team's theme patterns].

--
Ticket URL: <https://meta.trac.wordpress.org/ticket/1289>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list