You can customise how excerpt would display by adding a function and by adding a filter in your theme’s functions.php
file.
Try this:
function custom_excerpt_more_link($more){
return '<a href="' . get_the_permalink() . '" rel="nofollow"> [more]</a>';
}
add_filter('excerpt_more', 'custom_excerpt_more_link');
The above function will remove default Read More
link and display [more]
instead.
To control length of your excerpt
you need to write another function and add filter for the same:
function set_custom_excerpt_length(){
return 40;
}
add_filter('excerpt_length', 'set_custom_excerpt_length', 10);
excerpt_more
and excerpt_length
are the filters you have to pick up outputs from your above custom functions.
Now you can use <?php the_excerpt(); ?> in your page to see them in action.
Hope this will help!