I’m sorry, I don’t know almost nothing about PHP. What shoud I do with this code? Just paste it in function.php? I’ve tried pasting this at the top of the file, but gives me error.
<?php add_filter( 'subheading', function( $value ) {
return wp_trim_words( $value, 5 );
} ); ?>
Parse error: syntax error, unexpected T_FUNCTION in (…)/functions.php on line 1
Thanks in advance!