Change The Default Ending On WordPress Excerpts

Need to change the default ending on WordPress excerpts? All you may need is to add this function to your WordPress theme’s functions.php file.

Changing default excerpt endings in WordPress

To change the default excerpt ending on WordPress excerpts, you need to add a function to your WordPress theme’s functions.php¬†file.

  1. Navigate to Appearance > Editor > Theme Functions from your WordPress Dashboard;
  2. Copy and paste the code below;
  3. Click Update File to save the changes.
function custom_excerptmore( $more ) {
     return '…';

add_filter( 'excerpt_more', 'custom_excerptmore' );