Opened 11 years ago
Closed 11 years ago
#30176 closed enhancement (fixed)
Twenty Fourteen: Replaces ellipses with ellipses and a Continue reading link.
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.1 | Priority: | normal |
| Severity: | normal | Version: | 4.1 |
| Component: | Bundled Theme | Keywords: | has-patch commit |
| Focuses: | accessibility | Cc: |
Description
To help meet accessibility-ready requirements, we need to make clean automatically-generated excepts. We should replace the ellipses (appended to automatically generated excerpts) with a Continue reading link.
The theme already carries the accessibility-ready tag but this was missed previously.
This would mirror what we already do in the content.php and other content areas, and is catching another use-case:
<?php
/* translators: %s: Name of current post */
the_content( sprintf(
esc_html__( 'Continue reading %s', 'twentyfifteen' ),
the_title( '<span class="screen-reader-text">', '</span>', false )
) );
?>
We could add it in the template-tags.php file and follow this example: http://www.fklein.info/read-more-link-excerpts/
Related: #30135
Note: I neglected to mention that the patch also modifies the content template parts to include a visually hidden post title for screen reader users.