These variables obviously depend on your themes’ font and size choices. So go ahead and make a count of how many characters fill one full line of your post excerpts’ title, In the case above this tuned out to be around 24 characters. Now do the same for the excerpt text, ours averaged about 30 characters. Next decide how long you want the excerpt to be, measured in characters. In our example we specified 350.
[note color=red title=”NOTE”]
In our example the excerpt titles and text are using the same line-height, if yours are using widely different figures this technique will be less effective, so you may need to experiment by adjusting the number of excerpt characters that fill a single line (variable 2) you pass to the function.