Customize wordpress excerpt ellipsis with post permalink

Copy and Pase the given blow code in your functions.php file. This code will replace the ellipsis with post permalink.

function new_excerpt_more($content) {
return ‘<div><a href=”‘. get_permalink() .'”>Read More…</a></div>’;
}
add_filter(‘excerpt_more’, ‘new_excerpt_more’);

You can also modify it according to you.

Bansal Sumit

To seek challenging roles and to achieve excellence in the field of Open Source Web Technology with a profound spirit of commitment and dedication.

You may also like...

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.