Hi there,
We can try forcing a trim on the excerpt.
Try this PHP snippet:
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"><a class="button" href="%2$s">%3$s</a></p>',
wp_trim_words( $excerpt, 20, '...' ),
get_permalink(),
__( 'Read more', 'generatepress' )
);
}
return $output;
}
Here’s how to add PHP
https://docs.generatepress.com/article/adding-php/