Advertisement
Guest User

Untitled

a guest
Jul 5th, 2015
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. function joints_wpsearch($form) {
  2. $form = '<form role="search" method="get" id="searchform" action="' . home_url( '/' ) . '" >
  3. <div class="small-10 columns no-pad">
  4. <input type="text" value="' . get_search_query() . '" name="s" id="s" placeholder="'.esc_attr__('Search the Site','jointstheme').'" />
  5. </div>
  6. <div class="small-2 columns no-pad srchBtn">
  7. </div>
  8. </form>';
  9. return $form;
  10. }
  11.  
  12. function custom_search( $form ) {
  13. $form = '<form role="search" method="get" id="searchform2" action="' . home_url( '/' ) . '" >
  14. <div class="medium-11 small-10 columns no-pad">
  15. <input type="text" value="' . get_search_query() . '" name="s" id="s2" placeholder="'.esc_attr__('Search the Site','jointstheme').'" />
  16. </div>
  17. <div class="medium-1 small-2 columns no-pad">
  18. <input type="submit" id="searchsubmit" class="srchBtn2" value="" />
  19. </div>
  20. </div>
  21. </form>';
  22. return $form;
  23. }
  24.  
  25. add_filter( 'get_search_form', 'joints_wpsearch' );
  26.  
  27. add_filter( 'get_search_form', 'custom_search' );
  28.  
  29. <?php get_search_form('custom_search'); ?>
  30.  
  31. <?php get_search_form('joints_wpsearch'); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement