If you want using excerpt by change functions.php file because don’t want use too many file in child theme. You can use this code. This is the code i’m using in my blog.
function my_excerpts($content = false) {
// If is the home page, an archive, or search results
if(is_home() || is_archive() || is_search()) :
global $post;
$content = $post->post_excerpt;
$content = strip_shortcodes($content);
$content = str_replace(']]>', ']]>', $content);
$content = preg_replace("/<img[^>]+\>/i", "", $content);
$content = strip_tags($content, '<p>');
// If an excerpt is set in the Optional Excerpt box
if($content) :
$content = apply_filters('the_excerpt', $content);
// If no excerpt is set
else :
$content = $post->post_content;
$content = strip_shortcodes($content);
$content = str_replace(']]>', ']]>', $content);
$content = preg_replace("/<img[^>]+\>/i", "", $content);
$content = strip_tags($content, '<p>');
$excerpt_length = 65;
$words = explode(' ', $content, $excerpt_length + 1);
if(count($words) > $excerpt_length) :
array_pop($words);
array_push($words, '[...]');
$content = implode(' ', $words);
endif;
$content = '<p>' . $content . '</p>';;
endif;
endif;
// Make sure to return the content
return $content;
}
// Add filter to the_content
add_filter('the_content', 'my_excerpts');
Best Regards,
Naziman Azlye