Hi,
The closest related documentation to this is this one:
https://docs.generatepress.com/article/generate_content_more_link_output/
This filter changes the read more button output.
Here’s an example code that does pretty close, if not exactly, what you need.
add_filter( 'generate_excerpt_more_output','lh_change_read_more' );
function lh_change_read_more() {
return sprintf( ' <p class="read-more-container"><a title="%1$s" class="read-more button" href="%2$s">Learn from %3$s</a></p>',
the_title_attribute( 'echo=0' ),
esc_url( get_permalink( get_the_ID() ) ),
the_author( get_the_ID() )
);
}
Here’s how to add PHP codes. -https://docs.generatepress.com/article/adding-php/