Removed blog sidebar from search results.
authorLaury GvR <laury@gaslightmedia.com>
Thu, 13 Aug 2015 14:34:48 +0000 (10:34 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Thu, 13 Aug 2015 14:34:48 +0000 (10:34 -0400)
search.php

index efa2073..f35a32c 100644 (file)
@@ -5,7 +5,7 @@
     <br><h2 class="search-result-header small-centered small-11 columns">Please enter a query in the search box. </h2>
     <?php } else { ?>
     <br><h2 class="search-result-header small-centered small-11 columns">Search Results for "<?php echo get_search_query(); ?>"</h2>
-        <div id="blog-posts-over" class="small-11 medium-9 columns">
+        <div id="blog-posts-over" class="small-12 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 search-result-container">
             </div>
             <?php endif;?>
         </div>
-        <div id="blog-side-info-wrapper" class="small-11 small-only-text-center medium-3 columns">
-            <div id="blog-side-info">
-                <form id="searchform" action="<?php bloginfo('url'); ?>" method="get">
-                    <div><input id="s" class="text" type="text" name="s" value="" />
-                    <input class="submit blogbutton" type="submit" name="submit" value="Search" />
-                    <input type="hidden" name="searchType" value="blog" /> </div>
-                </form>
-                <p>Recent Posts</p>
-                <ul>
-                <?php
-                        $args = array( 'numberposts' => '5' );
-                        $recent_posts = wp_get_recent_posts( $args );
-                        foreach( $recent_posts as $recent ){
-                                echo '<li><a href="' . get_permalink($recent["ID"]) . '">' .   $recent["post_title"].'</a> </li> ';
-                        }
-                ?>
-                </ul>
-                <p>Archive</p>
-                <ul><?php wp_get_archives( array( 'type' => 'monthly', 'limit' => 12 ) ); ?></ul>
-                <p>Categories</p>
-                <ul>
-                    <?php
-                    $args = array(
-                    'orderby' => 'name',
-                    'order' => 'ASC'
-                    );
-                  $categories = get_categories($args);
-                    foreach($categories as $category) {
-                      echo '<li><a href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '>' . $category->name.'</a> </li> ';  }
-                    ?>
-                </ul>
-            </div>
-        </div>
         <?php } ?> <!-- end empty query check -->
     </div>
     <?php get_footer(); ?>