I’ve got two blog post elements on our new home page–one each for our news and events categories. Each spans two of four columns. I’ve chosen the “Excerpt with Read More link” under blog content length. So some questions about this arrangement:
1) Is there a way to manually control the length of the excerpt in either character, word or line count? Right now it’s giving me five lines and I only want 2, or 3 at most.
2) At the end of the excerpt the theme is inserting an ellipsis with brackets enclosing it, like this: […] How can I get rid of the brackets? It’s grammatically incorrect and does nothing. It just looks bad.
3) I also tried using just one blog element with the grid layout set to two columns. This DOES get rid of the bracketed ellipsis, but it also inserts the blog post pencil icon above each column, which I don’t need, don’t want,and does nothing but add unneeded depth to the page. Even when I choose “no pagination visible” it still adds the box and icon above the entry. How can I get rid of this and use the grid layout to solve me problem?
Thanks! A link to the page is in the private content.
Dave
Hey dkrausJFA!
Thank you for using Enfold.
1.) Please use the following filter in the functions.php file to limit the number of excerpt characters.
function excerpt_length_mod( $length ) {
return 20;
}
add_filter( 'excerpt_length', 'excerpt_length_mod', 999 )
2.) Use this one to remove the ellipsis.
add_filter('excerpt_more','__return_false');
Cheers!
Ismael