Edit File by line
/home/barbar84/www/wp-conte.../themes/twentyni...
File: search.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* The template for displaying search results pages
[2] Fix | Delete
*
[3] Fix | Delete
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#search-result
[4] Fix | Delete
*
[5] Fix | Delete
* @package WordPress
[6] Fix | Delete
* @subpackage Twenty_Nineteen
[7] Fix | Delete
* @since Twenty Nineteen 1.0
[8] Fix | Delete
*/
[9] Fix | Delete
[10] Fix | Delete
get_header();
[11] Fix | Delete
?>
[12] Fix | Delete
[13] Fix | Delete
<div id="primary" class="content-area">
[14] Fix | Delete
<main id="main" class="site-main">
[15] Fix | Delete
[16] Fix | Delete
<?php if ( have_posts() ) : ?>
[17] Fix | Delete
[18] Fix | Delete
<header class="page-header">
[19] Fix | Delete
<h1 class="page-title">
[20] Fix | Delete
<?php _e( 'Search results for: ', 'twentynineteen' ); ?>
[21] Fix | Delete
<span class="page-description"><?php echo get_search_query(); ?></span>
[22] Fix | Delete
</h1>
[23] Fix | Delete
</header><!-- .page-header -->
[24] Fix | Delete
[25] Fix | Delete
<?php
[26] Fix | Delete
// Start the Loop.
[27] Fix | Delete
while ( have_posts() ) :
[28] Fix | Delete
the_post();
[29] Fix | Delete
[30] Fix | Delete
/*
[31] Fix | Delete
* Include the Post-Format-specific template for the content.
[32] Fix | Delete
* If you want to override this in a child theme, then include a file
[33] Fix | Delete
* called content-___.php (where ___ is the Post Format name) and that
[34] Fix | Delete
* will be used instead.
[35] Fix | Delete
*/
[36] Fix | Delete
get_template_part( 'template-parts/content/content', 'excerpt' );
[37] Fix | Delete
[38] Fix | Delete
// End the loop.
[39] Fix | Delete
endwhile;
[40] Fix | Delete
[41] Fix | Delete
// Previous/next page navigation.
[42] Fix | Delete
twentynineteen_the_posts_navigation();
[43] Fix | Delete
[44] Fix | Delete
// If no content, include the "No posts found" template.
[45] Fix | Delete
else :
[46] Fix | Delete
get_template_part( 'template-parts/content/content', 'none' );
[47] Fix | Delete
[48] Fix | Delete
endif;
[49] Fix | Delete
?>
[50] Fix | Delete
</main><!-- #main -->
[51] Fix | Delete
</div><!-- #primary -->
[52] Fix | Delete
[53] Fix | Delete
<?php
[54] Fix | Delete
get_footer();
[55] Fix | Delete
[56] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function