@skandha
It doesn’t seem to have made a difference—I’m still getting the ellipses and, to my eyes, nothing else has changed on the front page.
Here’s my current functions.php code in full, if that’s of any use:
<?php
function my_theme_enqueue_styles() {
$parent_style = 'verity-style';
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style',
get_stylesheet_directory_uri() . '/style.css',
array( $parent_style ),
wp_get_theme()->get('Version')
);
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
function verity_excerpt_more( $more ) {
if ( is_admin() ) {
return $more;
}
$more_tag_text = get_theme_mod( 'verity_excerpt_more_text', esc_html__( 'Continue reading', 'verity' ) );
$link = sprintf( '<a href="%1$s" class="more-link"><span>%2$s</span></a>',
esc_url( get_permalink( get_the_ID() ) ),
/* translators: %s: Name of current post */
wp_kses_data( $more_tag_text ). '<span class="screen-reader-text">' . get_the_title( get_the_ID() ) . '</span>'
);
return $link;
}
?>