Reply To: Change read more link | WP Masonry Layout

Reply To: Change read more link

Home Forums Pro Version Change read more link Reply To: Change read more link

#16971
Masonry Guy
Keymaster

Hi Debbie,

Here we use the default settings set by wordpress. However, it is possible to change with some filters. You can keep this code in your functions.php to change it.

function new_excerpt_more($more) {
       global $post;
	return '<a class="moretag" href="'. get_permalink($post->ID) . '"> Read More</a>';
}
add_filter('excerpt_more', 'new_excerpt_more')

For details, you can check this wordpress document as well. https://codex.wordpress.org/Customizing_the_Read_More

Thanks