You appear to be a bot. Output may be restricted
Description
Replaces "[.
..]" (appended to automatically generated excerpts) with … and a 'Continue reading' link.
Usage
$string = twentyseventeen_excerpt_more( $link );
Parameters
- $link
- ( string ) required – Link to single post/page.
Returns
string 'Continue reading' link prepended with an ellipsis.
Source
File name: twentyseventeen/functions.php
Lines:
1 to 13 of 13
function twentyseventeen_excerpt_more( $link ) { if ( is_admin() ) { return $link; } $link = sprintf( '<p class="link-more"><a href="%1$s" class="more-link">%2$s</a></p>', esc_url( get_permalink( get_the_ID() ) ), /* translators: %s: Post title. Only visible to screen readers. */ sprintf( __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentyseventeen' ), get_the_title( get_the_ID() ) ) ); return ' … ' . $link; }