read more text

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.

Published by

Emdad Khan

I am Emdad Khan, A WordPress Theme Developer and Author of BN Web Design Website. A full time Freelancer on WordPress Theme Development & Optimization as well as blogger.

Leave a Reply