Advertisement:

Author Topic: Move search results to show up on same page as search bar  (Read 726 times)

ryanlitwiller

  • Newbie
  • *
  • Posts: 12
Move search results to show up on same page as search bar
« on: June 01, 2015, 08:53:00 am »
Hey guys I'm trying to move search results to load at the bottom of the same page, under latest listings.

So I understand that this code in header needs to be tweaked
Code: [Select]
<!-- Main Input -->
                 <form action="<?php echo osc_base_url(true); ?>" method="get" class="search nocsrf" <?php /* onsubmit="javascript:return doSearch();"*/ ?>>
                     <input type="hidden" name="page" value="search"/>
                     <div class="main-search"style="width: 330px;">
                         <div class="cell">
                           <input type="text" name="sPattern" id="query" class="input-texts" value="" placeholder="<?php echo osc_esc_html(__(osc_get_preference('keyword_placeholder''GetAway_theme'), 'GetAway')); ?>" />
                         </div><?php  if ( osc_count_categories() ) { ?>
                         <div class="cell reset-padding"><?php  } else { ?>
                             <div class="cell"><?php  ?>
                               <button class="ui-button ui-button-big js-submit"><?php _e("Search"'GetAway');?></button>
                             </div>
                         </div>
                              <div id="message-seach"></div>
                     </div>
                 </form>

and that some of the code from search.php will have to be included where I want the results to load. Any help will be greatly appreciated, even if its pointing me in the right direction I can usually figure it out from there.