search.php 1.0 KB

123456789101112131415161718192021222324252627
  1. <?php get_header();?>
  2. <div class="container">
  3. <div class="row py-5">
  4. <div class="col-lg-9 col-sm-12">
  5. <?php if ( have_posts() ) : ?>
  6. <header class="page-header">
  7. <h1></strong><?php printf( __( 'Search for: %s' ), get_search_query() ); ?></h1>
  8. </header>
  9. <?php while ( have_posts() ) : the_post();?>
  10. <header class="entry-header">
  11. <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'dw' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  12. </header>
  13. <div class="entry-content">
  14. <?php the_excerpt(); ?>
  15. </div>
  16. <?php endwhile; else: ?>
  17. <header class="entry-header">
  18. <h2 class="entry-title">Nothing Found</h2>
  19. </header>
  20. <?php get_search_form();endif; ?>
  21. </div>
  22. <div class="col-lg-3 col-sm-12 d-none">
  23. <?php get_sidebar();?>
  24. </div>
  25. </div>
  26. </div>
  27. <?php get_footer();?>