Edit File by line
/home/barbar84/www/wp-conte.../themes/twentytw.../template.../excerpt
File: excerpt-chat.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Show the appropriate content for the Chat post format.
[2] Fix | Delete
*
[3] Fix | Delete
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
[4] Fix | Delete
*
[5] Fix | Delete
* @package WordPress
[6] Fix | Delete
* @subpackage Twenty_Twenty_One
[7] Fix | Delete
* @since Twenty Twenty-One 1.0
[8] Fix | Delete
*/
[9] Fix | Delete
[10] Fix | Delete
// If there are paragraph blocks, print up to two.
[11] Fix | Delete
// Otherwise this is legacy content, so print the excerpt.
[12] Fix | Delete
if ( has_block( 'core/paragraph', get_the_content() ) ) {
[13] Fix | Delete
[14] Fix | Delete
twenty_twenty_one_print_first_instance_of_block( 'core/paragraph', get_the_content(), 2 );
[15] Fix | Delete
} else {
[16] Fix | Delete
[17] Fix | Delete
the_excerpt();
[18] Fix | Delete
}
[19] Fix | Delete
[20] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function