Tagged: excerpts
How can I remove the brackets around the […] so it just shows as … at the end of blog excerpts?
Hey gerardbao,
Please add following code to Functions.php file in Appearance > Editor
function avia_trim_excerpt($text) {
return rtrim($text,'[...]');
}
add_filter('get_the_excerpt', 'avia_trim_excerpt');
Best regards,
Yigit
I added that code to the functions.php.
Now instead of “[…]” at the end of the blog excerpts, I got “[&hellip” displaying.
Please advise. Thanks
Hi,
Please post us your login credentials (in the “private data” field), so we can take a look at your backend.
Login credentials include:
Best regards,
Yigit
Login in private
Hi,
I changed the code to following one
function avia_excerpt_more_change( $more ) {
return '...';
}
add_filter( 'excerpt_more', 'avia_excerpt_more_change' );
Please review your website now
Best regards,
Yigit
It worked. Thanks!