Edit File by line
/home/barbar84/www/wp-conte.../themes/twentytw...
File: index.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* The main template file
[2] Fix | Delete
*
[3] Fix | Delete
* This is the most generic template file in a WordPress theme
[4] Fix | Delete
* and one of the two required files for a theme (the other being style.css).
[5] Fix | Delete
* It is used to display a page when nothing more specific matches a query.
[6] Fix | Delete
* E.g., it puts together the home page when no home.php file exists.
[7] Fix | Delete
*
[8] Fix | Delete
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
[9] Fix | Delete
*
[10] Fix | Delete
* @package WordPress
[11] Fix | Delete
* @subpackage Twenty_Twenty_One
[12] Fix | Delete
* @since Twenty Twenty-One 1.0
[13] Fix | Delete
*/
[14] Fix | Delete
[15] Fix | Delete
get_header();
[16] Fix | Delete
[17] Fix | Delete
if ( have_posts() ) {
[18] Fix | Delete
[19] Fix | Delete
// Load posts loop.
[20] Fix | Delete
while ( have_posts() ) {
[21] Fix | Delete
the_post();
[22] Fix | Delete
[23] Fix | Delete
get_template_part( 'template-parts/content/content', get_theme_mod( 'display_excerpt_or_full_post', 'excerpt' ) );
[24] Fix | Delete
}
[25] Fix | Delete
[26] Fix | Delete
// Previous/next page navigation.
[27] Fix | Delete
twenty_twenty_one_the_posts_navigation();
[28] Fix | Delete
[29] Fix | Delete
} else {
[30] Fix | Delete
[31] Fix | Delete
// If no content, include the "No posts found" template.
[32] Fix | Delete
get_template_part( 'template-parts/content/content-none' );
[33] Fix | Delete
[34] Fix | Delete
}
[35] Fix | Delete
[36] Fix | Delete
get_footer();
[37] Fix | Delete
[38] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function