File: /home/storage/162/3480162/user/htdocs/wp-content/themes/head-blog/search.php
<?php get_header(); ?>
<?php get_template_part( 'template-parts/template-part', 'head' ); ?>
<!-- start content container -->
<div class="row">
<div class="col-md-<?php head_blog_main_content_width_columns(); ?>">
<?php
// if this was a search we display a page header with the results count. If there were no results we display the search form.
if ( is_search() ) :
/* translators: %s: search result */
echo "<h1 class='search-head text-center'>" . sprintf( esc_html__( 'Search Results for: %s', 'head-blog' ), get_search_query() ) . "</h1>";
endif;
if ( have_posts() ) :
while ( have_posts() ) : the_post();
get_template_part( 'content', get_post_format() );
endwhile;
the_posts_pagination();
else :
get_template_part( 'content', 'none' );
endif;
?>
</div>
<?php get_sidebar( 'right' ); ?>
</div>
<!-- end content container -->
<?php get_footer(); ?>