adding sidebar to search.php template
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 21 Nov 2016 19:57:50 +0000 (14:57 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 21 Nov 2016 19:57:50 +0000 (14:57 -0500)
sections/search.php

index 814f8af..2d0a94b 100644 (file)
@@ -8,11 +8,11 @@
     </div>
     
     <div class="row">
-        <div id="blog-posts-over" class="small-12 columns">
+        <div id="blog-posts-over" class="small-12 medium-9 columns">
             <?php if(have_posts()) : while(have_posts()): the_post();?>
                 <?php if (is_search() && (isset($_GET['searchType']) && $_GET['searchType'] == 'blog') && ($post->post_type=='page')) continue; ?>
             <div class="row content search-result-container">
-                <div class="small-11 small-centered columns">
+                <div class="small-11 medium-9 columns">
                     <article id="<?php the_ID()?>" <?php post_class()?>>
                         <header class="entry-header">
                             <h1 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h1>
@@ -98,6 +98,7 @@
                 </div>
             </div>
             <?php endwhile; ?>
+          
             <div class="navigation">
                 <span class="newer"><?php previous_posts_link(__('« Newer','example')) ?></span> <span class="older"><?php next_posts_link(__('Older »','example')) ?></span>
             </div><!-- /.navigation -->
             </div><!-- /#post-404 -->
             <?php endif;?>
         </div>
-            
+              <?php get_template_part('parts/blog-sidebar-r'); ?>
         <?php } ?> <!-- end empty query check -->
     </div>
 </main>
\ No newline at end of file