Change read more in wordpress theme

To add read more text in wordpress theme without plugin, use this below small code in theme functions.php file.

function bn_excerpt_more()
function custom_excerpt_more($more)
return '<span class="continue-reading"> <a href="' . get_permalink($post->ID) . '" rel="nofollow">Read more.....</a></span>';
add_filter('excerpt_more', 'custom_excerpt_more');
add_action('after_setup_theme', 'bn_excerpt_more');

This code is working with latest version of WordPress.

Leave a Reply

Your email address will not be published. Required fields are marked *

Solve : *
21 ⁄ 1 =