Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Changed search template to match default page mark up #963

Merged
merged 2 commits into from
Mar 31, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 13 additions & 9 deletions search.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@

get_header(); ?>

<div class="row">
<div class="small-12 large-8 columns" role="main">
<div id="page" role="main">

<?php do_action( 'foundationpress_before_content' ); ?>
<?php do_action( 'foundationpress_before_content' ); ?>

<h2><?php _e( 'Search Results for', 'foundationpress' ); ?> "<?php echo get_search_query(); ?>"</h2>
<article <?php post_class('main-content') ?> id="search-results">
<header>
<h1 class="entry-title"><?php _e( 'Search Results for', 'foundationpress' ); ?> "<?php echo get_search_query(); ?>"</h1>
</header>

<?php if ( have_posts() ) : ?>

Expand All @@ -24,7 +26,7 @@
<?php else : ?>
<?php get_template_part( 'template-parts/content', 'none' ); ?>

<?php endif;?>
<?php endif; ?>

<?php do_action( 'foundationpress_before_pagination' ); ?>

Expand All @@ -40,9 +42,11 @@
</nav>
<?php endif; ?>

<?php do_action( 'foundationpress_after_content' ); ?>
</article>

<?php do_action( 'foundationpress_after_content' ); ?>
<?php get_sidebar(); ?>

</div>
<?php get_sidebar(); ?>
</div>
<?php get_footer();

<?php get_footer();