How to Remove the […] from the excerpt without plugin
Steps to Remove the […] from the excerpt without plugin
After logging into WordPress dashboard go to Appearance > Editor from the menu at the left hand side.
Now locate the functions.php file
The location to the file may look like : /home/username/public_html/wp-content/themes/currently_active_theme/functions.php
Make a local backup of this file in case anything goes wrong and you may need to revert to previous stable code.
click on it to begin editing it.
Put this below code in your functions.php to remove the […] at the end of the excerpt.
function trim_excerpt($text) {
return substr($text, 0, -11);
}
add_filter(‘get_the_excerpt’, ‘trim_excerpt’);
This will remove ellipsis in wordpress excerpt without plugin
Let me know [email protected]/skype-bpshbp if you have any Query