Change read more excerpt wordpress

when you work on wordpress and change the default excerpt then you add this code in your functions.php and it’w work 100% as you like.

function new_excerpt_more( $more ) {
return '<div><a href="'. get_permalink( get_the_ID() ) . '">' . __('Read More...', 'euasia') . '</a></div>';
}
add_filter('excerpt_more', 'new_excerpt_more');
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s