Hi there, I have set custom excerpts for blog posts, however now on the blog page (which is set to display recent posts), the read more button has disappeared.
Having looked through the support forum, and your documentation pages, I have tried to fix this by adding the following to simple CSS, but it does not work:
add_filter( ‘wp_trim_excerpt’, ‘tu_excerpt_metabox_more’ );
function tu_excerpt_metabox_more( $excerpt ) {
$output = $excerpt;
if ( has_excerpt() ) {
$output = sprintf( ‘%1$s <p class=”read-more-button-container”>%3$s</p>’,
$excerpt,
get_permalink(),
__( ‘Read more’, ‘generatepress’ )
);
}
return $output;
}
Being that the above does not work, do you have coding which I can add to simple CSS which will reinstate the read more buttons when custom excerpts are enabled?
Thanks π