I would not recommend this!
You will have to do this every time you update your WP installation. It is better to write a custom function in your functions.php
PHP Code:
function limit_content($ctolimit, $clen = 280)
{
$cut = substr(strip_tags($ctolimit), 0, $clen);
$sensible_cut_position = strrpos($cut, ' ');
return substr($cut, 0, $sensible_cut_position);
}
and then you call it like this:
PHP Code:
<?php echo limit_content($ctolimit,$clen);?>
$ctolimit - text to limit (can be get_the_content()

$clean - number of characters to limit, default value is 280, but can be set to whatever you like. The $clean parameter is optional.
The function returns only text without tags.
This simple function does not break words, and the number of characters is more like a maximum for string length. This function searches for the last occurrence of a space (assumed word end ) at the end of the given text, and returns the cropped text.
Bookmarks