public/wordpress/wp-content/themes/puro/functions.php
/**
 * Add a more link to the excerpt.
 */
Add a more link to the excerpt.
Add a more link to the excerpt .
function puro_excerpt_more( $more ) {
	if ( is_search() ) return;
	if ( siteorigin_setting( 'blog_archive_content' ) == 'excerpt' && siteorigin_setting( 'blog_excerpt_more' ) ) {
		$read_more_text = siteorigin_setting( 'blog_read_more' ) ? esc_html( siteorigin_setting( 'blog_read_more' ) ) : __( 'Continue reading', 'puro' );
		return '<p><a class="more-link" href="' . get_permalink() . '">' . $read_more_text . '</a></p>';
	}
}
function puro_excerpt_more ( $ more ) { if ( is_search ( ) ) return ; if ( siteorigin_setting ( 'blog_archive_content' ) == 'excerpt' && siteorigin_setting ( 'blog_excerpt_more' ) ) { $ read_more_text = siteorigin_setting ( 'blog_read_more' ) ? esc_html ( siteorigin_setting ( 'blog_read_more' ) ) : __ ( 'Continue reading' , 'puro' ) ; return '<p><a class="more-link" href="' . get_permalink ( ) . '">' . $ read_more_text . '</a></p>' ; } }
Add a more link to the excerpt.
Add a more link to the excerpt .